feat: Unit Price Items in Buying (RFQ, SQ, PO)

- chore: Extract `set_unit_price_items_note` into a util
This commit is contained in:
marination
2025-03-03 17:53:00 +01:00
parent 71f65bab5e
commit e403d3f153
17 changed files with 161 additions and 35 deletions

View File

@@ -2755,3 +2755,13 @@ erpnext.apply_putaway_rule = (frm, purpose=null) => {
}
});
};
erpnext.set_unit_price_items_note = (frm) => {
if (frm.doc.has_unit_price_items && !frm.is_new()) {
frm.dashboard.set_headline_alert(
__("The {0} contains Unit Price Items with 0 Qty.", [__(frm.doc.doctype)]),
"yellow",
true
);
}
};