Also fix income/expenses sum

This commit is contained in:
James Cole
2016-12-05 20:35:13 +01:00
parent b713eae009
commit b1ef225bd0
2 changed files with 108 additions and 57 deletions

View File

@@ -1,14 +1,14 @@
<table class="table table-hover">
<tr>
<td>{{ 'in'|_ }}</td>
<td>{{ incomes.getTotal|formatAmount }}</td>
<td>{{ incomeSum|formatAmount }}</td>
</tr>
<tr>
<td>{{ 'out'|_ }}</td>
<td>{{ (expenses.getTotal)|formatAmount }}</td>
<td>{{ expensesSum|formatAmount }}</td>
</tr>
<tr>
<td>{{ 'difference'|_ }}</td>
<td>{{ (incomes.getTotal + expenses.getTotal)|formatAmount }}</td>
<td>{{ (incomeSum + expensesSum)|formatAmount }}</td>
</tr>
</table>