More hip report stuff.

This commit is contained in:
James Cole
2015-05-16 15:43:58 +02:00
parent cdeac2c6db
commit b812881cdb
8 changed files with 140 additions and 187 deletions

View File

@@ -15,6 +15,24 @@
</th>
</tr>
<!-- make rows -->
{% for balanceLine in balance.getBalanceLines %}
<tr>
<td>{{ balanceLine.getBudget.name }}</td>
<td>{{ balanceLine.getBudgetAmount|formatAmount }}</td>
{% for balanceEntry in balanceLine.getBalanceEntries %}
<td class="text-danger">
{% if balanceEntry.getSpent != 0 %}
{{ (balanceEntry.getSpent*-1)|formatAmountPlain }}
{% endif %}
</td>
{% endfor %}
<td>
{{ balanceLine.left|formatAmount }}
</td>
</tr>
{% endfor %}
</table>
<!--

View File

@@ -47,7 +47,7 @@
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
{% include 'partials/reports/budgets-vs-accounts.twig' %}
{% include 'partials/reports/balance.twig' %}
</div>
</div>
<div class="row">