Skip to content

Commit

Permalink
fix: Opening entries showing up incorrectly in TB report (#36135)
Browse files Browse the repository at this point in the history
* fix: Opening entries showing up incorrectly in TB report

* chore: Linting Issue
  • Loading branch information
deepeshgarg007 committed Jul 14, 2023
1 parent 6b0b640 commit 297c7e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ def set_gl_entries_by_account(
filters,
gl_entries_by_account,
ignore_closing_entries=False,
ignore_opening_entries=False,
):
"""Returns a dict like { "account": [gl entries], ... }"""
gl_entries = []
Expand All @@ -426,7 +427,6 @@ def set_gl_entries_by_account(
pluck="name",
)

ignore_opening_entries = False
if accounts_list:
# For balance sheet
if not from_date:
Expand Down
1 change: 1 addition & 0 deletions erpnext/accounts/report/trial_balance/trial_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def get_data(filters):
filters,
gl_entries_by_account,
ignore_closing_entries=not flt(filters.with_period_closing_entry),
ignore_opening_entries=True,
)

calculate_values(accounts, gl_entries_by_account, opening_balances)
Expand Down

0 comments on commit 297c7e8

Please sign in to comment.