From c78c86663dfd170fb8f81ac8820852cbe456777c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Sep 2019 12:24:37 +0530 Subject: [PATCH] Update customer_credit_balance.py --- .../report/customer_credit_balance/customer_credit_balance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py b/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py index 6b8b8581d28..cd50568cf98 100644 --- a/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py +++ b/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py @@ -60,7 +60,7 @@ def get_details(filters): conditions = "" if filters.get("customer"): - conditions += " AND name = " + filters.get("customer") + conditions += " AND c.name = " + filters.get("customer") return frappe.db.sql("""SELECT c.name, c.customer_name, @@ -71,4 +71,4 @@ def get_details(filters): c.name = ccl.parent AND ccl.company = %s {0} - """.format(conditions), (filters.get("company")), as_dict=1) #nosec \ No newline at end of file + """.format(conditions), (filters.get("company")), as_dict=1) #nosec