From 4821f38d25012dd31cb3eae75ba39cc39a5856b6 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Mon, 21 Oct 2019 13:27:40 +0530 Subject: [PATCH] fix: Item Price changes are not persistent after updating cost on submitted BOM (#19356) --- 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");