Added is_perpetual_inventory_enabled method

This commit is contained in:
Rohit Waghchaure
2017-06-19 12:54:59 +05:30
parent 65ccb42f95
commit e9ff1914fc
20 changed files with 85 additions and 48 deletions

View File

@@ -31,6 +31,12 @@ $.extend(erpnext, {
}
},
is_perpetual_inventory_enabled: function(company) {
if(company) {
return frappe.get_doc(":Company", company).enable_perpetual_inventory
}
},
setup_serial_no: function() {
var grid_row = cur_frm.open_grid_row();
if(!grid_row || !grid_row.grid_form.fields_dict.serial_no ||