Merge pull request #36454 from frappe/mergify/bp/version-14-hotfix/pr-36450

fix: Fix query for financial statement report (backport #36450)
This commit is contained in:
Deepesh Garg
2023-08-01 23:39:44 +05:30
committed by GitHub

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