Ignore Cancelled GL Entries

Profitability Analysis includes 'is_cancelled' GL Entries which means that the profit numbers are incorrect. This change will ensure that the profit figures ignore cancelled GL Entries.
This commit is contained in:
Mitchy25
2022-05-31 15:25:09 +12:00
committed by GitHub
parent 08bf0baaae
commit a0c412a0dd

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