{% extends "./layout/default.twig" %}
{% block content %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, date, shared) }}
{{ 'incomeVsExpenses'|_ }}
{{ 'incomeVsExpenses'|_ }}
{{ 'accountBalances'|_ }}
| {{ 'name'|_ }} |
{{ 'balanceStartOfYear'|_ }} |
{{ 'balanceStartOfYear'|_ }} |
{{ 'difference'|_ }} |
{% for account in accounts %}
|
{{ account.name }}
|
{{ account.startBalance|formatAmount }} |
{{ account.endBalance|formatAmount }} |
{{ (account.endBalance - account.startBalance)|formatAmount }} |
{% endfor %}
| Sum of sums |
{{ accountsSums.start|formatAmount }} |
{{ accountsSums.end|formatAmount }} |
{{ accountsSums.diff|formatAmount }} |
{{ 'incomeVsExpenses'|_ }}
| {{ 'in'|_ }} |
{{ totalIncome|formatAmount }} |
| {{ 'out'|_ }} |
{{ totalExpense|formatAmountPlain }} |
| {{ 'difference'|_ }} |
{{ (totalIncome - totalExpense)|formatAmount }} |
{{ 'income'|_ }} ({{ trans('firefly.topX',{number: incomeTopLength}) }})
{% for id,row in incomes %}
{% if loop.index > incomeTopLength %}
{% else %}
{% endif %}
{{ row.name }}
{% if row.count > 1 %}
{{ row.count }} {{ 'transactions'|_|lower }}
{% endif %}
|
{{ row.amount|formatAmount }} |
{% endfor %}
{% if incomes|length > incomeTopLength %}
|
{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}
|
{% endif %}
| {{ 'sum'|_ }} |
{{ totalIncome|formatAmount }} |
{{ 'expenses'|_ }} ({{ trans('firefly.topX',{number: expenseTopLength}) }})
{% set sum =0 %}
{% for row in expenses %}
{% if loop.index > expenseTopLength %}
{% else %}
{% endif %}
{{ row.name }}
{% if row.count > 1 %}
{{ row.count }} {{ 'transactions'|_|lower }}
{% endif %}
|
{{ (row.amount*-1)|formatAmountPlain }} |
{% set sum = sum + row.amount %}
{% endfor %}
{% if expenses|length > expenseTopLength %}
|
{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}
|
{% endif %}
| {{ 'sum'|_ }} |
{{ (sum * -1)|formatAmountPlain }} |
{% endblock %}
{% block scripts %}
{% endblock %}