{% for period in periods %}

{{ period.title }}

{% if period.total_transactions > 0 %} {% endif %} {% for entry in period.spent %} {% if entry.amount != 0 %} {% endif %} {% endfor %} {% for entry in period.earned %} {% if entry.amount != 0 %} {% endif %} {% endfor %} {% for entry in period.transferred %} {% if entry.amount != 0 %} {% endif %} {% endfor %} {% for entry in period.transferred_away %} {% if entry.amount != 0 %} {% endif %} {% endfor %} {% for entry in period.transferred_in %} {% if entry.amount != 0 %} {% endif %} {% endfor %}
{{ 'transactions'|_ }} {{ period.total_transactions }}
{{ 'spent'|_ }} {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
{{ 'earned'|_ }} {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
{{ 'transferred'|_ }} {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
{{ 'transferred_away'|_ }} {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
{{ 'transferred_in'|_ }} {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
{% endfor %}