mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 22:19:18 +00:00
Merge pull request #38550 from frappe/mergify/bp/version-15-hotfix/pr-38475
fix: incorrect customer outstanding amount (backport #38475)
This commit is contained in:
@@ -602,7 +602,8 @@ def get_customer_outstanding(
|
|||||||
"""
|
"""
|
||||||
select sum(debit) - sum(credit)
|
select sum(debit) - sum(credit)
|
||||||
from `tabGL Entry` where party_type = 'Customer'
|
from `tabGL Entry` where party_type = 'Customer'
|
||||||
and party = %s and company=%s {0}""".format(
|
and is_cancelled = 0 and party = %s
|
||||||
|
and company=%s {0}""".format(
|
||||||
cond
|
cond
|
||||||
),
|
),
|
||||||
(customer, company),
|
(customer, company),
|
||||||
|
|||||||
Reference in New Issue
Block a user