From bd7de515b16bcd45e619caa3f3f929339a04ed9a Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Mon, 28 Jul 2025 11:42:13 +0530 Subject: [PATCH] fix: error when trying to edit quantity of top most FG in bom creator --- erpnext/public/js/bom_configurator/bom_configurator.bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js index 6d24751792c..d25ca212b41 100644 --- a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js +++ b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js @@ -417,7 +417,7 @@ class BOMConfigurator { doctype: doctype, docname: docname, qty: data.qty, - parent: node.data.parent_id, + parent: node.data.parent_id ? node.data.parent_id : this.frm.doc.name, }, callback: (r) => { node.data.qty = data.qty;