mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
fix(quotation): ignore zero ordered_qty
(cherry picked from commit 32ea37035e)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user