fix: sales order indicator should be based on available qty rather than delivered qty

This commit is contained in:
Mihir Kandoi
2026-03-15 09:41:32 +05:30
parent b5a21855f6
commit 708e4fa2be

View File

@@ -26,7 +26,7 @@ frappe.ui.form.on("Sales Order", {
let color;
if (!doc.qty && frm.doc.has_unit_price_items) {
color = "yellow";
} else if (doc.stock_qty <= doc.delivered_qty) {
} else if (doc.stock_qty <= doc.actual_qty) {
color = "green";
} else {
color = "orange";