{% load base_filters %}

{% trans 'Totals' %}

{% for item in results %} {% endfor %}
{% trans 'App' %} {% trans 'Count' %} {% trans 'Total' %} {% trans 'Payments' %} {% trans 'Balance' %}
{{ item.object_type }} {{ item.count }} invoices {{ item.total__sum|format_currency }} {{ item.payments_credits__sum|format_currency }} {{ item.balance__sum|format_currency }}
{% trans 'TOTAL' %} {{ totals.count }} invoices {{ totals.total|format_currency }} {{ totals.payments_credits|format_currency }} {{ totals.balance|format_currency }}

{% trans 'The following apps had data for the selected date range and are included in this report. Click to jump to a specific section' %}:

    {% for item in results %}
  1. {{ item.object_type }}
  2. {% endfor %}
{% for item in results %}

{{ forloop.counter }}. {{ item.object_type }} {% trans 'Back to Top' %}

{% trans 'Count' %} {% trans 'Total' %} {% trans 'Payments' %} {% trans 'Balance' %}
{{ item.count }} {% trans 'invoices' %} {{ item.total__sum|format_currency }} {{ item.payments_credits__sum|format_currency }} {{ item.balance__sum|format_currency }}

{% blocktrans with t=item.object_type %}Invoices for {{ t }} sorted by Date{% endblocktrans %}

{% for summary in item.summary %} {% with summary.invoices.0 as invoice %} invoice.total %} pay-extra{% endif %} {% if invoice.payments_credits == invoice.total and invoice.balance == invoice.total and invoice.total > 0 %} all-match{% endif %}"> {% endwith %} {% endfor %}
{% trans 'Title' %} {% trans 'Total' %} {% trans 'Payments' %} {% trans 'Balance' %}
{% if invoice.get_object.event.pk %} {{ invoice.get_object.event.pk }} - {{ invoice.get_object.event.title|truncatewords:"3" }} {% elif invoice.get_object.membership_type %} {{ invoice.get_object.membership_type }} {% elif invoice.title %}{{ invoice.title }}{% endif %} {{ summary.total|format_currency }} {{ summary.payments_credits|format_currency }} {{ summary.balance|format_currency }}
{% trans 'Title' %} {% trans 'Total' %} {% trans 'Payments' %} {% trans 'Balance' %}
{% trans 'Summary' %} {{ item.total__sum|format_currency }} {{ item.payments_credits__sum|format_currency }} {{ item.balance__sum|format_currency }}
{% endfor %}