diff --git a/resources/views/v1/reports/partials/categories.twig b/resources/views/v1/reports/partials/categories.twig index 8b6954fd83..6bf627789b 100644 --- a/resources/views/v1/reports/partials/categories.twig +++ b/resources/views/v1/reports/partials/categories.twig @@ -8,6 +8,7 @@ + {% set sumSpent = 0 %} {% set sumEarned = 0 %} {% for index, category in report %} @@ -21,8 +22,8 @@ {{ category.name }} - {{ category.earned|formatAmount }} - {{ category.spent|formatAmount }} + {{ formatAmountBySymbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }} + {{ formatAmountBySymbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }} {% endif %} - + {# {{ 'sum'|_ }} {{ sumEarned|formatAmount }} {{ sumSpent|formatAmount }}   + TODO fix the sum here. + #}