{% for account in report.accounts %} {% if account.sum != 0 %} {% endif %} {% endfor %} {% for budget in report.budgets %} {% if budget.spent|length > 0 %} {% for account in report.accounts %} {% if budget.spent[account.id] %} {% else %} {% if report.accounts[account.id].sum != 0 %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% for account in report.accounts %} {% if account.sum != 0 %} {% endif %} {% endfor %}
{{ 'budgets'|_ }}{{ 'sum'|_ }}
{{ budget.budget_name }} {{ formatAmountBySymbol(budget.spent[account.id].spent, budget.spent[account.id].currency_symbol, budget.spent[account.id].currency_decimal_places) }}   {% for sum in report.sums[budget.budget_id] %} {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
{% endfor %}
{{ 'sum'|_ }} {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}