{% set sum = 0 %} {% for entry in entries %} {% set sum = sum + entry.sum %} {% if loop.index > listLength %} {% else %} {% endif %} {% endfor %} {% if entries|length > listLength %} {% endif %}
{{ 'name'|_ }} {{ 'total'|_ }}
{{ entry.name }} {% if entry.count > 1 %}
{{ entry.count }} {{ 'transactions'|_|lower }} {% endif %}
{{ (entry.sum)|formatAmount }}
{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
{{ 'sum'|_ }} {{ (sum)|formatAmount }}