diff --git a/frepple/controllers/outbound.py b/frepple/controllers/outbound.py index 41fc973..a3595e8 100644 --- a/frepple/controllers/outbound.py +++ b/frepple/controllers/outbound.py @@ -1987,7 +1987,7 @@ def getReservedQuantity(stock_move_id): ), due, priority, - j["picking_policy"] == "one" and qty or 0.0, + qty - reserved_quantity if j["picking_policy"] == "one" and qty - reserved_quantity > 0 else 0.0, "open" if qty - reserved_quantity > 0 else "closed", quoteattr(product["name"]), quoteattr(customer), @@ -2047,7 +2047,7 @@ def getReservedQuantity(stock_move_id): qty, due, priority, - j["picking_policy"] == "one" and qty or 0.0, + qty if j["picking_policy"] == "one" and qty > 0 else 0.0, status, quoteattr(product["name"]), quoteattr(customer),