(Profit and Loss Statement, fix): for parent account value was showing as zero

This commit is contained in:
Rohit Waghchaure 2019-02-21 17:18:28 +05:30
parent bc3bdd77f6
commit 90691dc0d8

View File

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