fix: log type mandatory error while exposing api call to employee checkin
This commit is contained in:
parent
addd1e842b
commit
923ed8a741
@ -6,5 +6,9 @@ frappe.ui.form.on('Employee Checkin', {
|
||||
if(!frm.doc.time) {
|
||||
frm.set_value("time", frappe.datetime.now_datetime());
|
||||
}
|
||||
},
|
||||
refresh: (frm) => {
|
||||
// make log type mandatory
|
||||
frm.set_df_property('log_type', 'reqd', frm.doc.log_type ? 0 : 1);
|
||||
}
|
||||
});
|
||||
|
@ -41,8 +41,7 @@
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Log Type",
|
||||
"options": "\nIN\nOUT",
|
||||
"reqd": 1
|
||||
"options": "\nIN\nOUT"
|
||||
},
|
||||
{
|
||||
"fieldname": "shift",
|
||||
@ -108,7 +107,7 @@
|
||||
}
|
||||
],
|
||||
"links": [],
|
||||
"modified": "2020-01-23 04:57:42.551355",
|
||||
"modified": "2020-07-08 11:02:32.660986",
|
||||
"modified_by": "Administrator",
|
||||
"module": "HR",
|
||||
"name": "Employee Checkin",
|
||||
|
Loading…
x
Reference in New Issue
Block a user