mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: log type mandatory error while exposing api call to employee checkin
This commit is contained in:
@@ -6,5 +6,9 @@ frappe.ui.form.on('Employee Checkin', {
|
|||||||
if(!frm.doc.time) {
|
if(!frm.doc.time) {
|
||||||
frm.set_value("time", frappe.datetime.now_datetime());
|
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",
|
"fieldtype": "Select",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Log Type",
|
"label": "Log Type",
|
||||||
"options": "\nIN\nOUT",
|
"options": "\nIN\nOUT"
|
||||||
"reqd": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "shift",
|
"fieldname": "shift",
|
||||||
@@ -108,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-01-23 04:57:42.551355",
|
"modified": "2020-07-08 11:02:32.660986",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Employee Checkin",
|
"name": "Employee Checkin",
|
||||||
|
|||||||
Reference in New Issue
Block a user