mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
perf: improve financial statement loading time (#28295)
(cherry picked from commit b7a44fe0a3)
Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
This commit is contained in:
@@ -425,8 +425,7 @@ def set_gl_entries_by_account(
|
|||||||
{additional_conditions}
|
{additional_conditions}
|
||||||
and posting_date <= %(to_date)s
|
and posting_date <= %(to_date)s
|
||||||
and is_cancelled = 0
|
and is_cancelled = 0
|
||||||
{distributed_cost_center_query}
|
{distributed_cost_center_query}""".format(
|
||||||
order by account, posting_date""".format(
|
|
||||||
additional_conditions=additional_conditions,
|
additional_conditions=additional_conditions,
|
||||||
distributed_cost_center_query=distributed_cost_center_query), gl_filters, as_dict=True) #nosec
|
distributed_cost_center_query=distributed_cost_center_query), gl_filters, as_dict=True) #nosec
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user