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 <noreply@anthropic.com>
This commit is contained in:
Umair Sayed
2026-06-12 16:10:56 +05:30
parent de3df6bcef
commit bc7c0de208

View File

@@ -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) {