feat: update summary items
This commit is contained in:
parent
840550e25f
commit
f59d927f73
@ -147,7 +147,6 @@ def get_report_summary(period_list, asset, liability, equity, provisional_profit
|
||||
{
|
||||
"value": net_asset,
|
||||
"label": "Total Asset",
|
||||
"indicator": "Green",
|
||||
"datatype": "Currency",
|
||||
"currency": currency
|
||||
},
|
||||
@ -155,14 +154,12 @@ def get_report_summary(period_list, asset, liability, equity, provisional_profit
|
||||
"value": net_liability,
|
||||
"label": "Total Liability",
|
||||
"datatype": "Currency",
|
||||
"indicator": "Red",
|
||||
"currency": currency
|
||||
},
|
||||
{
|
||||
"value": net_equity,
|
||||
"label": "Total Equity",
|
||||
"datatype": "Currency",
|
||||
"indicator": "Blue",
|
||||
"currency": currency
|
||||
},
|
||||
{
|
||||
|
@ -65,12 +65,14 @@ def get_report_summary(period_list, periodicity, income, expense, net_profit_los
|
||||
"datatype": "Currency",
|
||||
"currency": income[-1].get('currency') if income else default_currency
|
||||
},
|
||||
{ "type": "separator", "value": "-"},
|
||||
{
|
||||
"value": net_expense,
|
||||
"label": expense_label,
|
||||
"datatype": "Currency",
|
||||
"currency": expense[-1].get('currency') if expense else default_currency
|
||||
},
|
||||
{ "type": "separator", "value": "=", "color": "blue"},
|
||||
{
|
||||
"value": net_profit,
|
||||
"indicator": "Green" if net_profit > 0 else "Red",
|
||||
|
Loading…
Reference in New Issue
Block a user