Merge pull request #26231 from deepeshgarg007/party_dashboard

fix: Do not consider cancelled entries in party dashboard
This commit is contained in:
Deepesh Garg 2021-07-04 20:30:34 +05:30 committed by GitHub
commit cd036e115b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: