Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove sum, make multi-currency
James Cole1090ce65977c
diff --git a/resources/views/v1/reports/partials/categories.twig b/resources/views/v1/reports/partials/categories.twigindex 8b6954fd83..6bf627789b 100644--- a/resources/views/v1/reports/partials/categories.twig+++ b/resources/views/v1/reports/partials/categories.twig@@ -8,6 +8,7 @@</tr></thead><tbody>+{% set sumSpent = 0 %}{% set sumEarned = 0 %}{% for index, category in report %}@@ -21,8 +22,8 @@<td><a href="{{ route('categories.show', category.id) }}">{{ category.name }}</a></td>- <td style="text-align: right;">{{ category.earned|formatAmount }}</td>- <td style="text-align: right;">{{ category.spent|formatAmount }}</td>+ <td style="text-align: right;">{{ formatAmountBySymbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }}</td>+ <td style="text-align: right;">{{ formatAmountBySymbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }}</td><td style="width:20px;"><i class="fa fa-fw fa-info-circle text-muted firefly-info-button"data-location="category-entry" data-category-id="{{ category.id }}"@@ -39,12 +40,14 @@</td></tr>{% endif %}-+ {#<tr><td><em>{{ 'sum'|_ }}</em></td><td style="text-align: right;">{{ sumEarned|formatAmount }}</td><td style="text-align: right;">{{ sumSpent|formatAmount }}</td><td> </td></tr>+ TODO fix the sum here.+ #}</tfoot></table>