mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
fix: Wrong Ordered-Status Indicator for Material Request Items (#22117)
The indicator displaying if a material request item has been ordered or not (green/orange) used the wrong quantity field for determining the status. The qty field is not in stock uom while the ordered_qty field is. Now, the stock_qty field is used for correct comparison with ordered_qty.
This commit is contained in:
@@ -17,7 +17,7 @@ frappe.ui.form.on('Material Request', {
|
||||
|
||||
// formatter for material request item
|
||||
frm.set_indicator_formatter('item_code',
|
||||
function(doc) { return (doc.qty<=doc.ordered_qty) ? "green" : "orange"; });
|
||||
function(doc) { return (doc.stock_qty<=doc.ordered_qty) ? "green" : "orange"; });
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user