Merge pull request #22237 from deepeshgarg007/financial_statement_v13

fix: Handle cancelled entries in financial statements
This commit is contained in:
Deepesh Garg 2020-06-14 13:28:58 +05:30 committed by GitHub
commit 7640bef728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,7 @@ def set_gl_entries_by_account(
where company=%(company)s
{additional_conditions}
and posting_date <= %(to_date)s
and is_cancelled = 0
order by account, posting_date""".format(additional_conditions=additional_conditions), gl_filters, as_dict=True) #nosec
if filters and filters.get('presentation_currency'):