fix(quotation): ignore zero ordered_qty

(cherry picked from commit 32ea37035e)
This commit is contained in:
ravibharathi656
2026-02-06 15:48:46 +05:30
committed by Mergify
parent 816cbdea0d
commit ad92c021f7

View File

@@ -617,6 +617,9 @@ def handle_mandatory_error(e, customer, lead_name):
def get_ordered_items(quotation: str):
return frappe._dict(
frappe.get_all(
"Quotation Item", {"docstatus": 1, "parent": quotation}, ["name", "ordered_qty"], as_list=True
"Quotation Item",
{"docstatus": 1, "parent": quotation, "ordered_qty": (">", 0)},
["name", "ordered_qty"],
as_list=True,
)
)