{% from 'macros.html' import goal_bar with context %} {% extends "layout.html" %} {% block title %}{{date.year}}{% endblock %} {% block head %} {% endblock %} {% block page_header %} {% include "_year_overview.html" %} {% include "_month_switcher.html" %} {% endblock %} {% block page %}
Savings {% if not next_year %}
(after remaining planned expenses) {% endif %}
{% if not next_year %}
{{famount(budgets.savings, True)}}
{% else %}
{{famount(budgets.real_balance, True)}}
{% endif %}

{{famount(budgets.savings_balance, True)}}

{{famount(budgets.undetected_planned_expenses)}}

{{famount(savings_after_goals)}}

{{famount(budgets.income)}}

{{famount(budgets.planned_expenses)}}

{{famount(budgets.expenses)}}

{% if not next_year %}

{{famount(budgets.real_balance, True)}}

{% endif %}
{% if budget_goals %} {% for goal in budget_goals %} {% endfor %}
Budget goals
{{goal.label}}{% if goal.target %} ({{famount(goal.target)}}){% endif %} {% if goal.target %} {{ goal_bar(goal) }} {% else %} {{famount(goal.used)}} {% endif %}
{% endif %} {% if categories %} {% for category in categories %} {% endfor %}
Categories
{{category.name or 'Uncategorized'}} {% if category.has_warning %}⚠{% endif %} {{famount(category.amount)}} {% if category.warning_threshold %} / {{famount(category.warning_threshold)}}{% endif %}
{% include "_categories_bar.html" %} {% endif %} {% endblock %}