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

This commit is contained in:
Pandiyan P
2026-06-03 21:03:33 +05:30
committed by GitHub
parent 3294490040
commit 40bcf6e3b6

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