fix: set half day date None if half day is unchecked (#22905)

This commit is contained in:
Anurag Mishra
2020-08-04 19:29:56 +05:30
committed by GitHub
parent 02fcf569e6
commit d2593f0af5

View File

@@ -39,6 +39,9 @@ frappe.ui.form.on("Leave Application", {
validate: function(frm) {
frm.toggle_reqd("half_day_date", frm.doc.half_day == 1);
if (frm.doc.half_day == 0){
frm.doc.half_day_date = "";
}
},
make_dashboard: function(frm) {