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

{{ object.data.name }}

{{ trans('firefly.match_between_amounts', {low: formatAmountByCurrency(object.data.currency,object.data.amount_min), high: formatAmountByCurrency(object.data.currency,object.data.amount_max) })|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.next_expected_match|length > 0 %} {{ formatDate(object.data.next_expected_match, monthAndDayFormat) }} {% else %} {{ 'unknown'|_ }} {% endif %}
{{ trans('firefly.average_bill_amount_year', {year: year}) }} {{ formatAmountByCurrency(object.data.currency,yearAverage) }}
{{ 'average_bill_amount_overall'|_ }} {{ formatAmountByCurrency(object.data.currency, overallAverage) }}

{{ '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.data[0] %}

{{ 'notes'|_ }}

{{ object.data.notes.data[0].markdown|raw }}
{% endif %} {% if object.data.attachments_count > 0 %}

{{ 'attachments'|_ }}

{% for att in bill.data.attachments.data %} {% endfor %}
{% if att.data.title %} {{ att.data.title }} {% else %} {{ att.data.filename }} {% endif %} ({{ att.data.size|filesize }}) {% if att.data.description %}
{{ att.data.description }} {% endif %}
{% endif %}

{{ 'chart'|_ }}

{{ 'connected_journals'|_ }}

{% include 'list.transactions' with {showCategories: true, showBudgets: true} %}
{% endblock %} {% block scripts %} {% endblock %}