From 086b6a33eacde3aa3f2fa9358ed1d705ceb537eb Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Mon, 19 Jun 2017 12:25:14 +0530 Subject: [PATCH] Fixed BOM value not updating on changing item (#9350) --- erpnext/manufacturing/doctype/bom/bom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 03e5390d70b..83e0950f6eb 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -68,6 +68,10 @@ erpnext.bom.BomController = erpnext.TransactionController.extend({ scrap_items = true; } + if (child.bom_no) { + child.bom_no = ''; + } + get_bom_material_detail(doc, cdt, cdn, scrap_items); }, })