perf: improve financial statement loading time

This commit is contained in:
Saqib Ansari 2021-11-03 18:17:31 +05:30
parent a5902fa3f8
commit b7a44fe0a3

View File

@ -425,8 +425,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