[Fix] Balance sheet not working (#10311)

This commit is contained in:
rohitwaghchaure 2017-08-08 11:23:25 +05:30 committed by Nabin Hait
parent 738d8c2e0f
commit 9ef1d0f5a5

View File

@ -234,7 +234,7 @@ 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[period.key] = 0.0
total_row.setdefault("total", 0.0)
total_row["total"] += flt(row["total"])