{% for bill in report.bills %} {% if (bill.expected_dates|length > 0 or bill.paid_moments|length > 0) and bill.active %} {% endif %} {% endfor %} {% for line in bills.getBills %} {# if bill is hit, show hit amount #} {% if line.isHit %} {% endif %} {# if not but is active, show "not yet charged #} {% if not line.isHit and line.isActive %} {% endif %} {% if not line.isActive and not line.isHit %} {% endif %} {% endfor %}
{{ trans('form.name') }} {{ trans('form.expected_on') }} {{ trans('form.paid') }}
{{ bill.name }} {{ formatAmountBySymbol(bill.amount_min, bill.currency_symbol, bill.currency_decimal_places) }} {{ formatAmountBySymbol(bill.amount_max, bill.currency_symbol, bill.currency_decimal_places) }} {% for date in bill.expected_dates %} {{ date.formatLocalized(monthAndDayFormat) }}
{% endfor %}
{% set hitCount = 0 %} {% for journals in bill.paid_moments %} {% for journal in journals %} {% set hitCount = hitCount+1 %} {{ journal.description }}, {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% endfor %} {% endfor %} {% if hitCount == 0 %} {{ 'notCharged'|_ }} {% endif %}
{{ line.getBill.name }}
{{ trans('firefly.bill_expected_between', {start: line.getPayDate.formatLocalized(monthAndDayFormat), end: line.getEndOfPayDate.formatLocalized(monthAndDayFormat) }) }}
{{ formatAmountByCurrency(line.getCurrency, line.getAmount) }} {{ 'notCharged'|_ }}