fix: don't consider cancelled entries

This commit is contained in:
Devin Slauenwhite 2023-11-28 13:19:49 -05:00 committed by GitHub
parent 458dd51af7
commit adfcdb3b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1994,7 +1994,8 @@ def get_outstanding_on_journal_entry(name):
"END as outstanding_amount "
"FROM `tabGL Entry` WHERE (voucher_no=%s OR against_voucher=%s) "
"AND party_type IS NOT NULL "
'AND party_type != ""',
'AND party_type != ""'
"AND is_cancelled = 0",
(name, name),
as_dict=1,
)