{% for entry in bills %} {# paidDates = 0 (bill not paid in period) payDates = 0 (bill not expected to be paid in this period) bill is active. #} {% if entry.paidDates.count() == 0 and entry.payDates.count() == 0 and entry.active %} {% endif %} {# paidDates = 0 (bill not paid in period) payDates > 0 (bill IS expected to be paid in this period) bill is active #} {% if entry.paidDates.count() == 0 and entry.payDates.count() > 0 and entry.active %} {% endif %} {# paidDates >= 0 (bill is paid X times). Don't care about payDates. #} {% if entry.paidDates.count() > 0 and entry.active %} {% endif %} {# bill is not active #} {% if not entry.active %} {% endif %} {% endfor %}
{{ trans('list.name') }} {{ trans('list.matchingAmount') }}
{{ entry.name }} {{ entry.amount_min|formatAmount }} {{ entry.amount_max|formatAmount }}