fix: Do not consider cancelled entries in party dashboard
This commit is contained in:
parent
0a79cfa170
commit
802e63a9d7
@ -542,6 +542,7 @@ def get_dashboard_info(party_type, party, loyalty_program=None):
|
|||||||
select company, sum(debit_in_account_currency) - sum(credit_in_account_currency)
|
select company, sum(debit_in_account_currency) - sum(credit_in_account_currency)
|
||||||
from `tabGL Entry`
|
from `tabGL Entry`
|
||||||
where party_type = %s and party=%s
|
where party_type = %s and party=%s
|
||||||
|
and is_cancelled = 0
|
||||||
group by company""", (party_type, party)))
|
group by company""", (party_type, party)))
|
||||||
|
|
||||||
for d in companies:
|
for d in companies:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user