commit | 59a2a04fccf2daa4a04806ba996f1cdd8008d81c | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Fri Jul 21 13:22:01 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Fri Jul 21 13:22:01 2023 +0530 |
tree | 9041ff2b0009ca6ef8b3825237c35cd9eb9d1340 | |
parent | 1c033ce6355c16784bbb162c8f46a0e0910dbdb3 [diff] |
fix: check gl entry status using is_cancelled
diff --git a/erpnext/accounts/report/utils.py b/erpnext/accounts/report/utils.py index ed85ae7..68a4281 100644 --- a/erpnext/accounts/report/utils.py +++ b/erpnext/accounts/report/utils.py
@@ -379,6 +379,6 @@ (gle.account.isin(party_account)) & (gle.party == party) & (gle.posting_date < from_date) - & (gle.docstatus == 1) + & (gle.is_cancelled == 0) ) ).run(as_dict=True)