fix: unchecking the "With Operations" in BOM clears operations table #28446
This commit is contained in:
parent
d0c240ee84
commit
488d34af1f
@ -680,12 +680,6 @@ frappe.ui.form.on("BOM Item", "items_remove", function(frm) {
|
||||
erpnext.bom.calculate_total(frm.doc);
|
||||
});
|
||||
|
||||
frappe.ui.form.on("BOM", "with_operations", function(frm) {
|
||||
if(!cint(frm.doc.with_operations)) {
|
||||
frm.set_value("operations", []);
|
||||
}
|
||||
});
|
||||
|
||||
frappe.tour['BOM'] = [
|
||||
{
|
||||
fieldname: "item",
|
||||
|
@ -237,6 +237,7 @@
|
||||
"options": "Price List"
|
||||
},
|
||||
{
|
||||
"depends_on": "with_operations",
|
||||
"fieldname": "operations_section",
|
||||
"fieldtype": "Section Break",
|
||||
"hide_border": 1,
|
||||
@ -539,7 +540,7 @@
|
||||
"image_field": "image",
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2021-10-27 14:52:04.500251",
|
||||
"modified": "2021-11-18 13:04:16.271975",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Manufacturing",
|
||||
"name": "BOM",
|
||||
|
Loading…
x
Reference in New Issue
Block a user