Merge pull request #31184 from Mitchy25/patch-1

fix(accounts): Ignore Cancelled GL Entries
This commit is contained in:
Deepesh Garg 2022-05-31 09:48:44 +05:30 committed by GitHub
commit 25290bb5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,6 +211,7 @@ def set_gl_entries_by_account(
{additional_conditions}
and posting_date <= %(to_date)s
and {based_on} is not null
and is_cancelled = 0
order by {based_on}, posting_date""".format(
additional_conditions="\n".join(additional_conditions), based_on=based_on
),