Skip to content

Commit

Permalink
perf: improve financial statement loading time (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
  • Loading branch information
2 people authored and github-actions[bot] committed Nov 18, 2021
1 parent 840e6f2 commit 385948d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 385948d

Please sign in to comment.