From ef567eac37656cb61470ba3a8861a420a4a2d592 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Mon, 21 Oct 2019 13:27:34 +0530 Subject: [PATCH] fix: Item Price changes are not persistent after updating cost on submitted BOM (#19357) --- erpnext/manufacturing/doctype/bom/bom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 9248ac0fe85..b9591d6054b 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -117,7 +117,7 @@ frappe.ui.form.on("BOM", { args: { update_parent: true, from_child_bom:false, - save: false + save: frm.doc.docstatus === 1 ? true : false }, callback: function(r) { refresh_field("items");