Merge pull request #16325 from rohitwaghchaure/not_able_to_access_report_quoted_item_comparison

fix: report quoted item comparison not working
This commit is contained in:
Sagar Vora 2019-01-07 14:55:14 +05:30 committed by GitHub
commit f14c56488f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),