Update leave_application.js

This commit is contained in:
rohitwaghchaure 2020-07-08 12:40:01 +05:30 committed by GitHub
parent 8f2cb0beb6
commit 1fce8b7475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
},