[Leave Application] [fixes] Validate Leave Approver based on a list specified in Employee

This commit is contained in:
Anand Doshi
2013-04-12 20:19:53 +05:30
parent b094ae7f23
commit 60666a278f
13 changed files with 424 additions and 136 deletions

View File

@@ -136,10 +136,7 @@ erpnext.startup.set_periodic_updates = function() {
erpnext.hide_naming_series = function() {
if(cur_frm.fields_dict.naming_series) {
hide_field('naming_series');
if(cur_frm.doc.__islocal) {
unhide_field('naming_series');
}
cur_frm.toggle_display("naming_series", cur_frm.doc.__islocal?true:false);
}
}