Update balance_sheet.py
diff --git a/erpnext/accounts/report/balance_sheet/balance_sheet.py b/erpnext/accounts/report/balance_sheet/balance_sheet.py
index 5d8fe01..5547b49 100644
--- a/erpnext/accounts/report/balance_sheet/balance_sheet.py
+++ b/erpnext/accounts/report/balance_sheet/balance_sheet.py
@@ -48,7 +48,7 @@
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 @@
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