mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
feat: Unit Price Items in Buying (RFQ, SQ, PO)
- chore: Extract `set_unit_price_items_note` into a util
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user