mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 05:31:48 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user