From 32ea37035e36e0862fda165ebceb3b9331b9e861 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Fri, 6 Feb 2026 15:48:46 +0530 Subject: [PATCH] fix(quotation): ignore zero ordered_qty --- erpnext/selling/doctype/quotation/quotation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index fd6f6ec812a..3db03a18513 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -621,6 +621,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, ) )