Dashboard {% if selected_account_obj %} — {{ selected_account_obj.name }} {% endif %}

Este mes | Mes anterior | Este año

Mostrando: {{ selected_year }} {% if selected_month %}/{{ selected_month }}{% endif %}

Comparado con el periodo inmediatamente anterior


Saldo actual

{{ kpi_balance|floatformat:2 }}€

Total

{{ kpi_total }}€

Nº de gastos

{{ kpi_count }}

Categorías

{{ kpi_categories }}

{% if compare_enabled %}

Comparación con periodo anterior

{% if kpi_previous_total == 0 %}

No hay datos en el periodo anterior

{% else %}

Total anterior: {{ kpi_previous_total|floatformat:2 }}

{% endif %}
Diferencia: {% if kpi_trend == "up" %} ▲ {{ kpi_difference|floatformat:2 }}€ {% elif kpi_trend == "down" %} ▼ {{ kpi_difference_abs|floatformat:2 }}€ {% else %} 0€ {% endif %}

Variación: {% if kpi_percentage is not None %} {{ kpi_percentage|floatformat:2 }}% {% else %} Variación: N/D {% endif %}

{% endif %}

Gastos por categoría

{% if not by_category %}

No hay gastos para este periodo.

{% else %} {% for row in by_category %} {% empty %} {% endfor %}
Categoría Total
{{ row.category__name }} {{ row.total }}
Sin datos
{% endif %} {% if compare_enabled %}

Comparativa por categoría

{% for row in category_comparison %} {% endfor %}
Categoría Actual Anterior Diferencia
{{ row.category }} {{ row.current|floatformat:2 }}€ {{ row.previous }} {% if row.difference > 0 %} ▲ {{ row.difference|floatformat:2 }}€ {% elif row.difference < 0 %} ▼ {{ row.difference_abs|floatformat:2 }}€ {% else %} = {% endif %}
{% endif %}

Gastos por mes

Distribución mensual (año completo)