[Fix] New holiday list form is not working

This commit is contained in:
Rohit Waghchaure 2018-11-22 12:54:51 +05:30
parent 64b4d98778
commit 037a151ef5

View File

@ -3,7 +3,9 @@
frappe.ui.form.on('Holiday List', {
refresh: function(frm) {
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) {