Is Stock Item checkbox visibility
This commit is contained in:
parent
96376b2345
commit
37dd714e6c
@ -77,8 +77,8 @@ frappe.ui.form.on("Item", {
|
|||||||
|
|
||||||
erpnext.item.toggle_attributes(frm);
|
erpnext.item.toggle_attributes(frm);
|
||||||
|
|
||||||
frm.toggle_enable("is_fixed_asset", !frm.doc.is_stock_item &&
|
frm.toggle_enable("is_fixed_asset", (frm.doc.__islocal || (!frm.doc.is_stock_item &&
|
||||||
((frm.doc.__onload && frm.doc.__onload.asset_exists) ? false : true));
|
((frm.doc.__onload && frm.doc.__onload.asset_exists) ? false : true))));
|
||||||
},
|
},
|
||||||
|
|
||||||
validate: function(frm){
|
validate: function(frm){
|
||||||
@ -95,10 +95,6 @@ frappe.ui.form.on("Item", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
is_stock_item: function(frm) {
|
|
||||||
frm.toggle_enable("is_fixed_asset", !frm.doc.is_stock_item);
|
|
||||||
},
|
|
||||||
|
|
||||||
page_name: frappe.utils.warn_page_name_change,
|
page_name: frappe.utils.warn_page_name_change,
|
||||||
|
|
||||||
item_code: function(frm) {
|
item_code: function(frm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user