Added new information to the dashboard

This commit is contained in:
JKuijperM 2026-01-22 18:07:34 +01:00
parent 52d9e6488c
commit b74cfbac9e

View File

@ -57,6 +57,7 @@
<strong>{{ selected_year }}</strong>
{% if selected_month %}/<strong>{{ selected_month }}</strong>{% endif %}
</p>
<p>Comparado con el periodo inmediatamente anterior</p>
<hr>
@ -86,16 +87,23 @@
{% if compare_enabled %}
<section class="kpi compare">
<h3>Comparación con periodo anterior</h3>
<p>
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
</p>
{% if kpi_previous_total == 0 %}
<p><em>No hay datos en el periodo anterior</em></p>
{% else %}
<p>
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
</p>
{% endif %}
<p>
Diferencia:
{% if kpi_difference > 0 %}
<span></span>
{% elif kpi_difference < 0 %}
<span></span>
{% else %}
<span>=</span>
{% endif %}
<strong>{{ kpi_difference|floatformat:2 }}</strong>
</p>