Merge pull request #36582 from deepeshgarg007/final_total

fix: Group Account total not showing in Financial Statements
This commit is contained in:
Deepesh Garg 2023-08-11 21:56:44 +05:30 committed by GitHub
commit 7f062a71f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)