Conditionally toggle Naming Series. Fixes #1526

This commit is contained in:
Anand Doshi
2014-04-24 18:11:49 +05:30
parent 7f2d08b03f
commit 8bde7f9b3a
14 changed files with 50 additions and 34 deletions

View File

@@ -12,7 +12,7 @@ $.extend(erpnext, {
return frappe.boot.sysdefaults.currency;
},
hide_naming_series: function() {
toggle_naming_series: function() {
if(cur_frm.fields_dict.naming_series) {
cur_frm.toggle_display("naming_series", cur_frm.doc.__islocal?true:false);
}