From 3dc5b93db759cf7be71bf7cc2b00eb0f03b23b44 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 3 Jan 2019 12:19:44 +0530 Subject: [PATCH] [Fix] Report quoted item comparison not working --- .../report/quoted_item_comparison/quoted_item_comparison.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/report/quoted_item_comparison/quoted_item_comparison.py b/erpnext/buying/report/quoted_item_comparison/quoted_item_comparison.py index c399f3eee2..5aff6bacae 100644 --- a/erpnext/buying/report/quoted_item_comparison/quoted_item_comparison.py +++ b/erpnext/buying/report/quoted_item_comparison/quoted_item_comparison.py @@ -65,8 +65,8 @@ def get_quantity_list(item): if item: qty_list = frappe.db.sql("""select distinct qty from `tabSupplier Quotation Item` - where ifnull(item_code,'')=%s and docstatus < 2""", item, as_dict=1) - qty_list.sort(reverse=False) + where ifnull(item_code,'')=%s and docstatus < 2 order by qty""", item, as_dict=1) + for qt in qty_list: col = frappe._dict({ "key": str(qt.qty),