fix: check gl entry status using is_cancelled

This commit is contained in:
Gursheen Anand 2023-07-21 13:22:01 +05:30
parent 1c033ce635
commit 59a2a04fcc

View File

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