From bc7c0de208a36cff3d4edbc3ec6c48dfb6707940 Mon Sep 17 00:00:00 2001 From: Umair Sayed Date: Fri, 12 Jun 2026 16:10:56 +0530 Subject: [PATCH] refactor(bom): remove qty=0 alert from BOM Secondary Item JS The informational toast is not required for the feature to work. The core fix (reqd removed from JSON, validation relaxed in bom.py) is sufficient to allow zero qty on BOM secondary items. Co-Authored-By: Claude Sonnet 4.6 --- erpnext/manufacturing/doctype/bom/bom.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 3422ba1df7c..9fbe4f1174c 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -1012,19 +1012,6 @@ frappe.ui.form.on("BOM Secondary Item", { item_code(frm, cdt, cdn) { const { item_code } = locals[cdt][cdn]; }, - - qty(frm, cdt, cdn) { - const row = locals[cdt][cdn]; - if (flt(row.qty) === 0) { - frappe.show_alert({ - message: __( - "Row #{0}: Qty is set to zero for {1}. The actual output will be entered at the time of manufacture.", - [row.idx, frappe.bold(row.item_code)] - ), - indicator: "blue", - }); - } - }, }); function trigger_process_loss_qty_prompt(frm, cdt, cdn, item_code) {