Bill Details (go to Finance Tracker)

{% for bt in bill_types %}
{% endfor %} {% 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'] %} {% endif %} {% endfor %}
Total bills in {{yr}}
${{'%.2f'|format(total.sum)}}
{% endfor %}
{% for bt in bill_types %} {% if loop.first %}
{% else %}
{% endif %} {% for bd in bill_data %} {% if loop.first %}
{% endif %} {% if bd.bill_type_id == bt.id %} {% if bd.estimated == 1 %}
{% set classes="fst-italic form-control text-center" %} {% else %}
{% set classes="form-control text-center" %} {% endif %}
{% if bd.estimated == 0 %} {% endif %}
{% endif %} {% endfor %}
{% endfor %}