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)