{% for name, amounts in result %} {% endfor %}
{{ 'name'|_ }}
{{ name }} {% if amounts.spent.per_currency|length == 0 %} {{ '0'|formatAmount }} {% endif %} {% for expense in amounts.spent.per_currency %} {{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
{% endfor %}
{% if amounts.earned.per_currency|length == 0 %} {{ '0'|formatAmount }} {% endif %} {% for income in amounts.earned.per_currency %} {{ formatAmountBySymbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}
{% endfor %}