mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 12:33:19 +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):
|
def get_ordered_items(quotation: str):
|
||||||
return frappe._dict(
|
return frappe._dict(
|
||||||
frappe.get_all(
|
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