mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
Update customer_credit_balance.py
This commit is contained in:
@@ -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
|
||||
""".format(conditions), (filters.get("company")), as_dict=1) #nosec
|
||||
|
||||
Reference in New Issue
Block a user