fix: profit and loss indicator bug

This commit is contained in:
Shivam Mishra
2020-01-14 17:55:49 +05:30
parent 748c3d9e8b
commit a59c2ce17a

View File

@@ -58,7 +58,7 @@ def get_report_summary(columns, income, expense, net_profit_loss, period_list, p
return [ return [
{ {
"value": net_profit[-1], "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, "label": profit_label,
"datatype": "Currency", "datatype": "Currency",
"currency": net_profit_loss.get("currency") "currency": net_profit_loss.get("currency")