{% for account in report %} {% endfor %} {% for sum in sums %} {% endfor %}
{{ 'name'|_ }} {{ 'spent'|_ }} {{ 'earned'|_ }} {{ 'sum'|_ }}
{% if account.source_name == account.dest_name %} {{ account.source_name }} {% else %} {{ account.source_name }} / {{ account.dest_name }} {% endif %} {% if account.source_iban != '' and account.dest_iban != '' %} {% if account.source_iban == account.dest_iban %} ({{ account.source_iban }}) {% else %} ({{ account.source_iban }} / ({{ account.dest_iban }})) {% endif %} {% endif %} {{ formatAmountBySymbol(account.spent, account.currency_symbol, account.currency_decimal_places) }} {{ formatAmountBySymbol(account.earned, account.currency_symbol, account.currency_decimal_places) }} {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
{{ 'sum'|_ }} ({{ sum.currency_name }}) {{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} {{ formatAmountBySymbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}