mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Update customer_credit_balance.py
This commit is contained in:
@@ -60,7 +60,7 @@ def get_details(filters):
|
|||||||
conditions = ""
|
conditions = ""
|
||||||
|
|
||||||
if filters.get("customer"):
|
if filters.get("customer"):
|
||||||
conditions += " AND name = " + filters.get("customer")
|
conditions += " AND c.name = " + filters.get("customer")
|
||||||
|
|
||||||
return frappe.db.sql("""SELECT
|
return frappe.db.sql("""SELECT
|
||||||
c.name, c.customer_name,
|
c.name, c.customer_name,
|
||||||
@@ -71,4 +71,4 @@ def get_details(filters):
|
|||||||
c.name = ccl.parent
|
c.name = ccl.parent
|
||||||
AND ccl.company = %s
|
AND ccl.company = %s
|
||||||
{0}
|
{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