mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: don't consider cancelled entries
This commit is contained in:
committed by
GitHub
parent
458dd51af7
commit
adfcdb3b65
@@ -1994,7 +1994,8 @@ def get_outstanding_on_journal_entry(name):
|
|||||||
"END as outstanding_amount "
|
"END as outstanding_amount "
|
||||||
"FROM `tabGL Entry` WHERE (voucher_no=%s OR against_voucher=%s) "
|
"FROM `tabGL Entry` WHERE (voucher_no=%s OR against_voucher=%s) "
|
||||||
"AND party_type IS NOT NULL "
|
"AND party_type IS NOT NULL "
|
||||||
'AND party_type != ""',
|
'AND party_type != ""'
|
||||||
|
"AND is_cancelled = 0",
|
||||||
(name, name),
|
(name, name),
|
||||||
as_dict=1,
|
as_dict=1,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user