Remove sum, make multi-currency

This commit is contained in:
James Cole 2019-08-12 18:16:28 +02:00
parent e358f19548
commit 1090ce6597
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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>&nbsp;</td>
</tr>
TODO fix the sum here.
#}
</tfoot>
</table>