{{ trans('list.name') }} | {{ trans('list.matchingAmount') }} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
{% if not entry.active %} {% endif %} {{ entry.name }} {# count attachments #} {% if entry.attachments_count > 0 %} {% endif %} | ~ {{ formatAmountByCurrency(entry.currency, (entry.amount_max + entry.amount_min)/2) }} | {# paidDates = 0 (bill not paid in period) pay_dates = 0 (bill not expected to be paid in this period) bill is active. #} {% if entry.paid_dates|length == 0 and entry.pay_dates|length == 0 and entry.active %}{{ trans('components.not_expected_period') }} | {% endif %} {# paid_dates = 0 (bill not paid in period) pay_dates > 0 (bill IS expected to be paid in this period) bill is active #} {% if entry.paid_dates|length == 0 and entry.pay_dates|length > 0 and entry.active %}{{ trans('components.not_or_not_yet') }} | {% endif %} {# paid_dates >= 0 (bill is paid X times). Don't care about pay_dates. #} {% if entry.paid_dates|length > 0 and entry.active %}
{% for date in entry.paid_dates %}
{{ formatDate(date, monthAndDayFormat) }} {% endfor %} |
{% endif %}
{# bill is not active #}
{% if not entry.active %}
~ | {% endif %}|||||
{{ 'sum'|_ }} ({{ 'active_bills_only'|_ }}) | {{ formatAmountBySymbol(sum_min,'¤') }} | {{ formatAmountBySymbol(sum_max,'¤') }} | ||||||||
{{ 'average_per_bill'|_ }} ({{ 'active_bills_only'|_ }}) | {{ formatAmountBySymbol(avg_min,'¤') }} | {{ formatAmountBySymbol(avg_max,'¤') }} | ||||||||
{{ 'expected_total'|_ }} ({{ 'active_bills_only'|_ }}) | ~ {{ formatAmountBySymbol(expected_total,'¤') }} |