{% 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)}}

{% if not next_year %}

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

{% endif %}

{{famount(budgets.income)}} {% if budgets.expected_income %} / {{famount(budgets.expected_income)}}{% endif %}

{{famount(budgets.income / nb_months)}} {% if budgets.expected_income %} / {{famount(budgets.expected_income / nb_months)}}{% endif %}

{% if budgets.expected_planned_expenses %}

{{famount(budgets.planned_expenses)}} / {{famount(budgets.expected_planned_expenses)}}

{{famount(budgets.planned_expenses / nb_months)}} / {{famount(budgets.expected_planned_expenses / nb_months)}}

{% endif %}

{{famount(budgets.expenses)}}

{{famount(budgets.expenses / nb_months)}}

{% if budgets.expected_planned_expenses %}

{{famount(budgets.all_expenses / nb_months)}} {% if budgets.expected_planned_expenses %} / {{famount(budgets.all_expected_expenses / nb_months)}}{% endif %}

{% endif %}

{{famount(monthly_savings_capacity, True)}} {% if budgets.expected_planned_expenses %} / {{famount(expected_monthly_savings_capacity, True)}}{% endif %}

{{famount(monthly_savings_capacity*12, True)}} {% if budgets.expected_planned_expenses %} / {{famount(expected_monthly_savings_capacity*12, True)}}{% endif %}

{% if budget_goals and not next_year %}

{{famount(savings_goal, True)}}

{{famount(savings_after_goals)}}

{% 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 %} {{famount(category.amount / nb_months)}}
{% include "_categories_bar.html" %} {% endif %} {% endblock %}