From dc3198a11cea5a7e835bbd7b8993c77dfa86a5c1 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Wed, 26 Oct 2016 13:05:08 +0530 Subject: [PATCH] [Fix] Error in Balance Sheet Report --- erpnext/accounts/report/balance_sheet/balance_sheet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/balance_sheet/balance_sheet.py b/erpnext/accounts/report/balance_sheet/balance_sheet.py index 5547b49ce9..fbfaa41162 100644 --- a/erpnext/accounts/report/balance_sheet/balance_sheet.py +++ b/erpnext/accounts/report/balance_sheet/balance_sheet.py @@ -38,7 +38,8 @@ def execute(filters=None): if provisional_profit_loss: data.append(provisional_profit_loss) - data.append(total_credit) + if total_credit: + data.append(total_credit) columns = get_columns(filters.periodicity, period_list, company=filters.company) @@ -86,6 +87,7 @@ def get_provisional_profit_loss(asset, liability, equity, period_list, company): if has_value: return provisional_profit_loss, total_row return None,total_row + return None, None def check_opening_balance(asset, liability, equity): # Check if previous year balance sheet closed