mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 15:27:12 +00:00
Update leave_application.js
This commit is contained in:
@@ -41,7 +41,7 @@ frappe.ui.form.on("Leave Application", {
|
||||
if (frm.doc.from_date == frm.doc.to_date && frm.doc.half_day == 1){
|
||||
frm.doc.half_day_date = frm.doc.from_date;
|
||||
}else if (frm.doc.half_day == 0){
|
||||
frm.doc.half_day_date = undefined;
|
||||
frm.doc.half_day_date = "";
|
||||
}
|
||||
frm.toggle_reqd("half_day_date", frm.doc.half_day == 1);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user