Small optimisations.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-11-02 07:23:11 +01:00
parent 4ba34ab511
commit b980b5baea
2 changed files with 50 additions and 24 deletions

View File

@@ -113,15 +113,13 @@
<a href="{{ route('budgets.show', id) }}">{{ info.name }}</a>
{% endif %}
</td>
{% set sum = 0 %}
{% for amount in info.entries %}
<td data-value="{{ amount }}">
{{ amount|formatAmount }}
</td>
{% set sum = sum + amount %}
{% endfor %}
<td data-value="{{ sum }}">
{{ sum|formatAmount }}
<td data-value="{{ info.sum }}">
{{ info.sum|formatAmount }}
</td>
</tr>
{% endfor %}