{% extends './layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }} {% endblock %} {% block content %}

{{ object.data.name }}

{% set lowAmount = formatAmountByCurrency(object.data.currency,object.data.amount_min) %} {% set highAmount = formatAmountByCurrency(object.data.currency,object.data.amount_max) %} {% if(0 != object.data.pc_amount_min) %} {% set lowAmount = lowAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_min, primaryCurrency.code) ~ ')' %} {% endif %} {% if(0 != object.data.pc_amount_max) %} {% set highAmount = highAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_max, primaryCurrency.code) ~ ')' %} {% endif %} {{ trans('firefly.match_between_amounts', {low: lowAmount, high: highAmount })|raw }} {{ 'repeats'|_ }} {{ trans('firefly.repeat_freq_' ~object.data.repeat_freq) }}.
{{ 'bill_is_active'|_ }} {% if object.data.active %} {{ 'yes'|_ }} {% else %} {{ 'no'|_ }} {% endif %}
{{ 'next_expected_match'|_ }} {% if object.data.pay_dates|length > 0 %} {{ formatDate(object.data.pay_dates[0], monthAndDayFormat) }} {% else %} {{ 'unknown'|_ }} {% endif %}
{{ trans('firefly.average_bill_amount_year', {year: year}) }} {% for avg in yearAverage %} {{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }} {% if convertToPrimary and 0 != avg.pc_avg %} ({{ formatAmountBySymbol(avg.pc_avg, primaryCurrency.symbol, primaryCurrency.decimal_places, true) }}) {% endif %}
{% endfor %}
{{ 'average_bill_amount_overall'|_ }} {% for avg in overallAverage %} {{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }} {% if convertToPrimary and 0 != avg.pc_avg %} ({{ formatAmountBySymbol(avg.pc_avg, primaryCurrency.symbol, primaryCurrency.decimal_places, true) }}) {% endif %}
{% endfor %}

{{ 'bill_related_rules'|_ }}

{% if rules.count() > 0 %}
    {% for rule in rules %}
  • {{ rule.title }} {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }}){% endif %}
  • {% endfor %}
{% endif %}
{% if object.data.notes %}

{{ 'notes'|_ }}

{{ object.data.notes|default('')|markdown }}
{% endif %} {% if attachments.count() > 0 %}

{{ 'attachments'|_ }}

{% include 'list.attachments' %}
{% endif %}

{{ 'chart'|_ }}

{{ 'connected_journals'|_ }}

{% include 'list.groups' %}
{% endblock %} {% block scripts %} {# required for groups.twig #} {% endblock %}