commit | 3e4b5e5496443b38d5fd9f1058ab38a37791e837 | [log] [tgz] |
---|---|---|
author | Anupam Kumar <anupamvns0099@gmail.com> | Wed Jul 22 18:17:58 2020 +0530 |
committer | GitHub <noreply@github.com> | Wed Jul 22 18:17:58 2020 +0530 |
tree | 5cc4db5a3854a8bda653a1864aa2bcce1fb2e672 | |
parent | e519334dfcf7916f25cb0e25bda39c62f9fba78f [diff] |
fix: item-wise sales history report (#22783)
diff --git a/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py b/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py index 1bc4657..0a70b97 100644 --- a/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py +++ b/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py
@@ -191,7 +191,7 @@ conditions += "AND so_item.item_code = '%s'" %frappe.db.escape(filters.item_code) if filters.get("customer"): - conditions += "AND so.customer = '%s'" %frappe.db.escape(filters.customer) + conditions += "AND so.customer = %s" %frappe.db.escape(filters.customer) return conditions