{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, categoryIds, start, end) }} {% endblock %} {% block content %}

{{ 'accounts'|_ }}

{% for account in accounts %} {% if accountSummary[account.id] %} {% else %} {% endif %} {% if accountSummary[account.id] %} {% else %} {% endif %} {% endfor %}
{{ 'name'|_ }} {{ 'earned'|_ }} {{ 'spent'|_ }}
{{ account.name }} {{ accountSummary[account.id].earned|formatAmount }}{{ 0|formatAmount }}{{ accountSummary[account.id].spent|formatAmount }}{{ 0|formatAmount }}
{{ 'sum'|_ }} {{ accountSummary.sum.earned|formatAmount }} {{ accountSummary.sum.spent|formatAmount }}

{{ 'categories'|_ }}

{% for category in categories %} {% if categorySummary[category.id] %} {% else %} {% endif %} {% if categorySummary[category.id] %} {% else %} {% endif %} {% endfor %}
{{ 'name'|_ }} {{ 'earned'|_ }} {{ 'spent'|_ }}
{{ category.name }} {{ categorySummary[category.id].earned|formatAmount }}{{ 0|formatAmount }}{{ categorySummary[category.id].spent|formatAmount }}{{ 0|formatAmount }}
{{ 'sum'|_ }} {{ categorySummary.sum.earned|formatAmount }} {{ categorySummary.sum.spent|formatAmount }}
{% if categories.count > 1 %}

{{ 'income_per_category'|_ }}

{{ 'expense_per_category'|_ }}

{% endif %}

{{ 'income_per_account'|_ }}

{{ 'expense_per_account'|_ }}

{{ 'income_and_expenses'|_ }}

{% if averageExpenses|length > 0 %}

{{ 'average_spending_per_account'|_ }}

{% set totalCount = 0 %} {% set totalSum = 0 %} {% for row in averageExpenses %} {% set totalCount = totalCount+ row.count %} {% set totalSum = totalSum + row.sum %} {% if loop.index > listLength %} {% else %} {% endif %} {% set totalCount = totalCount+ row.count %} {% set totalSum = totalSum + row.sum %} {% endfor %} {% if averageExpenses|length > listLength %} {% endif %}
{{ 'account'|_ }} {{ 'spent_average'|_ }} {{ 'total'|_ }} {{ 'transaction_count'|_ }}
{{ row.name }} {{ row.average|formatAmount }} {{ row.sum|formatAmount }} {{ row.count }}
{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
{{ 'sum'|_ }} {{ totalSum|formatAmount }} {{ totalCount }}
{% endif %} {% if topExpenses.count > 0 %}

{{ 'expenses'|_ }} ({{ trans('firefly.topX', {number: listLength}) }})

{% set totalSum = 0 %} {% for row in topExpenses %} {% set totalSum = totalSum + row.sum %} {% if loop.index > listLength %} {% else %} {% endif %} {% endfor %} {% if topExpenses|length > listLength %} {% endif %}
{{ 'description'|_ }} {{ 'date'|_ }} {{ 'account'|_ }} {{ 'amount'|_ }}
{% if row.transaction_description|length > 0 %} {{ row.transaction_description }} ({{ row.description }}) {% else %} {{ row.description }} {% endif %} {{ row.date.formatLocalized(monthAndDayFormat) }} {{ row.opposing_account_name }} {{ row.transaction_amount|formatAmount }}
{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
{{ 'sum'|_ }} {{ totalSum|formatAmount }}
{% endif %}
{% if averageIncome|length > 0 %}

{{ 'average_income_per_account'|_ }}

{% set totalCount = 0 %} {% set totalSum = 0 %} {% for row in averageIncome %} {% set totalCount = totalCount+ row.count %} {% set totalSum = totalSum + row.sum %} {% endfor %}
{{ 'account'|_ }} {{ 'income_average'|_ }} {{ 'total'|_ }} {{ 'transaction_count'|_ }}
{{ row.name }} {{ row.average|formatAmount }} {{ row.sum|formatAmount }} {{ row.count }}
{{ 'sum'|_ }} {{ totalSum|formatAmount }} {{ totalCount }}
{% endif %}
{% if topIncome.count > 0 %}

{{ 'income'|_ }} ({{ trans('firefly.topX', {number: listLength}) }})

{% set totalSum = 0 %} {% for row in topIncome %} {% set totalSum = totalSum + row.transaction_amount %} {% if loop.index > listLength %} {% else %} {% endif %} {% endfor %} {% if topIncome.count > listLength %} {% endif %}
{{ 'description'|_ }} {{ 'date'|_ }} {{ 'account'|_ }} {{ 'amount'|_ }}
{% if row.transaction_description|length > 0 %} {{ row.transaction_description }} ({{ row.description }}) {% else %} {{ row.description }} {% endif %} {{ row.date.formatLocalized(monthAndDayFormat) }} {{ row.opposing_account_name }} {{ row.transaction_amount|formatAmount }}
{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
{{ 'sum'|_ }} {{ totalSum|formatAmount }}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}