This code makes sure the budget report also includes split expenses.

This commit is contained in:
James Cole
2016-11-26 07:09:02 +01:00
parent 8860378757
commit 28f655dba1
5 changed files with 128 additions and 30 deletions

View File

@@ -14,10 +14,17 @@
<td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a>
</td>
{% for amount in info.entries %}
<td data-value="{{ amount }}">
{{ amount|formatAmount }}
</td>
{% for key, period in periods %}
{% if(info.entries[key]) %}
<td data-value="{{ info.entries[key] }}">
{{ info.entries[key]|formatAmount }}
</td>
{% else %}
<td data-value="0">
{{ 0|formatAmount }}
</td>
{% endif %}
{% endfor %}
<td data-value="{{ info.sum }}">
{{ info.sum|formatAmount }}