[Fix] New holiday list form is not working
This commit is contained in:
parent
64b4d98778
commit
037a151ef5
@ -3,7 +3,9 @@
|
||||
|
||||
frappe.ui.form.on('Holiday List', {
|
||||
refresh: function(frm) {
|
||||
frm.set_value('total_holidays', frm.doc.holidays.length);
|
||||
if (frm.doc.holidays) {
|
||||
frm.set_value('total_holidays', frm.doc.holidays.length);
|
||||
}
|
||||
},
|
||||
from_date: function(frm) {
|
||||
if (frm.doc.from_date && !frm.doc.to_date) {
|
||||
|
Loading…
Reference in New Issue
Block a user