diff --git a/templates/bills.html b/templates/bills.html index 37a6ff7..2961500 100644 --- a/templates/bills.html +++ b/templates/bills.html @@ -88,19 +88,24 @@ {% endfor %} + {{ total[2][2025] }} {% for yr in range( this_year, END_YEAR) %} - {% set total=namespace( sum=0 ) %} - {% for bd in bill_data %} - {% if yr|string in bd['bill_date'] %} - {% set total.sum = total.sum + bd['amount'] %} + {% set tot=namespace( sum=0 ) %} + {% for bt in bill_types %} + {% if bt.id in total %} + {% set tot.sum = tot.sum + total[bt.id][yr] %} {% endif %} {% endfor %} + {% set markup="h5" %} + {% if yr == this_year %} + {% set markup="h4 pt-4" %} + {% endif %}