fix: Fix query for financial statement report

(cherry picked from commit bd3fc7c434)
This commit is contained in:
Corentin Flr
2023-08-01 14:35:11 +02:00
committed by Mergify
parent e8f24b8b4e
commit d1590f266b

View File

@@ -659,7 +659,7 @@ def set_gl_entries_by_account(
& (gle.posting_date <= to_date)
& (account.lft >= root_lft)
& (account.rgt <= root_rgt)
& (account.root_type <= root_type)
& (account.root_type == root_type)
)
.orderby(gle.account, gle.posting_date)
)