From a59c2ce17a5858bd3628b7ef7ae8d577ef4bbe80 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 14 Jan 2020 17:55:49 +0530 Subject: [PATCH] fix: profit and loss indicator bug --- .../profit_and_loss_statement/profit_and_loss_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.py b/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.py index 08cabed13b9..b96fe69ba89 100644 --- a/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.py +++ b/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.py @@ -58,7 +58,7 @@ def get_report_summary(columns, income, expense, net_profit_loss, period_list, p return [ { "value": net_profit[-1], - "indicator": "Green" if income_data[-1] > 0 else "Red", + "indicator": "Green" if net_profit[-1] > 0 else "Red", "label": profit_label, "datatype": "Currency", "currency": net_profit_loss.get("currency")