From 59a2a04fccf2daa4a04806ba996f1cdd8008d81c Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Fri, 21 Jul 2023 13:22:01 +0530 Subject: [PATCH] fix: check gl entry status using is_cancelled --- erpnext/accounts/report/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/utils.py b/erpnext/accounts/report/utils.py index ed85ae709e1..68a4281bf12 100644 --- a/erpnext/accounts/report/utils.py +++ b/erpnext/accounts/report/utils.py @@ -379,6 +379,6 @@ def get_opening_row(party_type, party, from_date, company): (gle.account.isin(party_account)) & (gle.party == party) & (gle.posting_date < from_date) - & (gle.docstatus == 1) + & (gle.is_cancelled == 0) ) ).run(as_dict=True)