fix: item-wise sales history report (#22783)

This commit is contained in:
Anupam Kumar 2020-07-22 18:17:58 +05:30 committed by GitHub
parent e519334dfc
commit 3e4b5e5496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ def get_conditions(filters):
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