fix(selling): consider delivered qty (backport #55597) (#55607)

Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com>
fix(selling): consider delivered qty (#55597)
This commit is contained in:
mergify[bot]
2026-06-03 15:37:29 +00:00
committed by GitHub
parent 9a2549dc32
commit 142ab3ce2a

View File

@@ -27,7 +27,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.actual_qty) {
} else if (doc.stock_qty - doc.delivered_qty <= doc.actual_qty) {
color = "green";
} else {
color = "orange";