commit | 64e47afec12c1c34a84d2384c75346efa226bb20 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Tue Feb 19 18:49:12 2013 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Tue Feb 19 18:49:12 2013 +0530 |
tree | a20d36e28b9d1d390a9179e1703b8cb9353aa4a0 | |
parent | f36a00bcbed438b9cf57381d86da088c02260698 [diff] |
calculate total leave days on load
diff --git a/hr/doctype/leave_application/leave_application.js b/hr/doctype/leave_application/leave_application.js index 9df348a..2f2e3dc 100755 --- a/hr/doctype/leave_application/leave_application.js +++ b/hr/doctype/leave_application/leave_application.js
@@ -34,6 +34,7 @@ cur_frm.cscript.get_leave_balance(cur_frm.doc); } }); + cur_frm.cscript.calculate_total_days(doc, dt, dn); } cur_frm.cscript.refresh = function(doc, dt, dn) {