mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Show sum [skip ci]
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -95,24 +95,34 @@
|
||||
<table class="table table-hover sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Budget</th>
|
||||
<th>{{ 'budget'|_ }}</th>
|
||||
{% for year in years %}
|
||||
<th>{{ year }}</th>
|
||||
{% endfor %}
|
||||
|
||||
<th>{{ 'sum'|_ }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{% for id, info in budgetMultiYear %}
|
||||
<tr>
|
||||
<td><a href="{{ route('budgets.show', id) }}">{{ info.name }}</a></td>
|
||||
<td>
|
||||
{% if id == 0 %}
|
||||
<a href="{{ route('budgets.noBudget') }}">{{ info.name }}</a>
|
||||
|
||||
{% else %}
|
||||
<a href="{{ route('budgets.show', id) }}">{{ info.name }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% set sum = 0 %}
|
||||
{% for amount in info.entries %}
|
||||
<td>
|
||||
<td data-value="{{ amount }}">
|
||||
{{ amount|formatAmount }}
|
||||
</td>
|
||||
{% set sum = sum + amount %}
|
||||
{% endfor %}
|
||||
|
||||
<td data-value="{{ sum }}">
|
||||
{{ sum|formatAmount }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user