|
{{ 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 %}
|
{% endif %}
{% endfor %}
{% for line in bills.getBills %}
{{ line.getBill.name }}
{{ trans('firefly.bill_expected_between', {start: line.getPayDate.formatLocalized(monthAndDayFormat), end: line.getEndOfPayDate.formatLocalized(monthAndDayFormat) }) }}
|
{{ formatAmountByCurrency(line.getCurrency, line.getMin) }} |
{{ formatAmountByCurrency(line.getCurrency, line.getMax) }} |
{# if bill is hit, show hit amount #}
{% if line.isHit %}
{{ formatAmountByCurrency(line.getCurrency, line.getAmount) }}
|
{% endif %}
{# if not but is active, show "not yet charged #}
{% if not line.isHit and line.isActive %}
{{ 'notCharged'|_ }} |
{% endif %}
{% if not line.isActive and not line.isHit %}
|
{% endif %}
{% if line.isHit %}
{{ formatAmountByCurrency(line.getCurrency, (line.getMax + line.getAmount)) }}
{% endif %}
|
{% endfor %}