Update customer_credit_balance.py
This commit is contained in:
parent
7834a0182b
commit
c78c86663d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user