Merge pull request #28238 from nextchamp-saqib/perf-financial-statements

perf: improve financial statement loading time
This commit is contained in:
Deepesh Garg 2021-11-09 16:29:58 +05:30 committed by GitHub
commit 8a253ed1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,8 +420,7 @@ def set_gl_entries_by_account(
{additional_conditions}
and posting_date <= %(to_date)s
and is_cancelled = 0
{distributed_cost_center_query}
order by account, posting_date""".format(
{distributed_cost_center_query}""".format(
additional_conditions=additional_conditions,
distributed_cost_center_query=distributed_cost_center_query), gl_filters, as_dict=True) #nosec