fix: sales order indicator should be based on available qty rather th… (backport #53456) (#53457)

This commit is contained in:
mergify[bot]
2026-03-15 09:46:07 +05:30
committed by GitHub
parent d6693c9b79
commit a6cf31edad

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";