consider category which are 0 for one premise but not for the other

This commit is contained in:
Wolfgang Hottgenroth 2022-04-25 12:22:39 +02:00
parent 18cd0eeebc
commit b79ef11401

View File

@ -48,7 +48,7 @@ def perform(dbh, params):
where p.account = a.id and where p.account = a.id and
ae.account = a.id and ae.account = a.id and
aec.overhead_relevant = 't' and aec.overhead_relevant = 't' and
aec.id not in (select distinct account_entry_category from account_entry_t where fiscal_year = %(year)s) and aec.id not in (select distinct account_entry_category from account_entry_t where fiscal_year = %(year)s and account = p.account) and
ae.fiscal_year = %(year)s and ae.fiscal_year = %(year)s and
p.id = %(premise)s p.id = %(premise)s
group by category, considerminusarea group by category, considerminusarea