Skip to content

Commit

Permalink
Merge pull request #36608 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-36582

fix: Group Account total not showing in Financial Statements (#36582)
  • Loading branch information
deepeshgarg007 authored Aug 11, 2023
2 parents 63c061e + 2912648 commit 347c67a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions erpnext/accounts/report/financial_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,10 @@ def add_total_row(out, root_type, balance_must_be, period_list, company_currency
for period in period_list:
total_row.setdefault(period.key, 0.0)
total_row[period.key] += row.get(period.key, 0.0)
row[period.key] = row.get(period.key, 0.0)

total_row.setdefault("total", 0.0)
total_row["total"] += flt(row["total"])
total_row["opening_balance"] += row["opening_balance"]
row["total"] = ""

if "total" in total_row:
out.append(total_row)
Expand Down

0 comments on commit 347c67a

Please sign in to comment.