{% if not budgets or date.year < current_month.year %} {{famount(account_balance or 0)}} {% else %} {{famount(account_balance or 0)}} {% if budgets.undetected_planned_expenses %} (-{{famount(budgets.undetected_planned_expenses)}}) {% endif %} {% endif %}
{% if budgets and date.year == current_month.year %}

Balance without planned expenses: {{famount(account_balance - budgets.undetected_planned_expenses)}}
Savings: {{famount(budgets.savings, True)}}

{% endif %} {% for acc in accounts %} {% endfor %}
Accounts
{{acc.title}} {{famount(acc.amount)}}