mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
fix: profit and loss indicator bug
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user