Update leave_application.js
This commit is contained in:
parent
8f2cb0beb6
commit
1fce8b7475
@ -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);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user