Added is_perpetual_inventory_enabled method
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user