From 1090ce65977c75b9c583553154ea1715e31125e1 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 12 Aug 2019 18:16:28 +0200 Subject: [PATCH] Remove sum, make multi-currency --- resources/views/v1/reports/partials/categories.twig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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. + #}