From 1d8d93d9ad113a6ae894d5173c788908eb02454a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 12 Sep 2016 17:43:14 +0530 Subject: [PATCH] Update balance_sheet.py --- erpnext/accounts/report/balance_sheet/balance_sheet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/report/balance_sheet/balance_sheet.py b/erpnext/accounts/report/balance_sheet/balance_sheet.py index 5d8fe014755..5547b49ce9b 100644 --- a/erpnext/accounts/report/balance_sheet/balance_sheet.py +++ b/erpnext/accounts/report/balance_sheet/balance_sheet.py @@ -48,7 +48,7 @@ def execute(filters=None): def get_provisional_profit_loss(asset, liability, equity, period_list, company): if asset and (liability or equity): - total = total_total=0 + total = total_row_total=0 currency = frappe.db.get_value("Company", company, "default_currency") provisional_profit_loss = { "account_name": "'" + _("Provisional Profit / Loss (Credit)") + "'", @@ -80,8 +80,8 @@ def get_provisional_profit_loss(asset, liability, equity, period_list, company): total += flt(provisional_profit_loss[period.key]) provisional_profit_loss["total"] = total - total_total += flt(total_row[period.key]) - total_row["total"] = total_total + total_row_total += flt(total_row[period.key]) + total_row["total"] = total_row_total if has_value: return provisional_profit_loss, total_row