Merge pull request #16751 from rohitwaghchaure/parent_value_showing_as_zero

(Profit and Loss Statement, fix): for parent account value was showing as zero
This commit is contained in:
rohitwaghchaure 2019-02-21 17:50:51 +05:30 committed by GitHub
commit a49f59fcec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"])