diff --git a/templates/bills.html b/templates/bills.html index bfda1d9..b883c60 100644 --- a/templates/bills.html +++ b/templates/bills.html @@ -35,10 +35,10 @@
-
-
-
-
+
+
+
+
{% for bt in bill_types %}
@@ -52,26 +52,32 @@
-
+
-
@@ -80,6 +86,20 @@
{% endfor %} + {% set total=namespace( sum=0 ) %} + {% for bd in bill_data %} + {% if '2025' in bd['bill_date'] %} + {% set total.sum = total.sum + bd['amount'] %} + {% endif %} + {% endfor %} +
+
+ Total bills in 2025: +
+
+ ${{total.sum}} +
+