mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
fix: set half day date None if half day is unchecked (#22905)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user