Skip to content

Commit

Permalink
Merge pull request #38550 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38475

fix: incorrect customer outstanding amount (backport #38475)
  • Loading branch information
ruthra-kumar authored Dec 4, 2023
2 parents 66e3dc7 + 98fe89a commit 92c8eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ def get_customer_outstanding(
"""
select sum(debit) - sum(credit)
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
),
(customer, company),
Expand Down

0 comments on commit 92c8eb1

Please sign in to comment.