{% load static i18n lingo %} {{ invoice.formatted_number }}

{{ invoice.label }}

{{ regie.label }}

{{ invoice.payer_first_name}} {{ invoice.payer_last_name}}
{{ invoice.payer_address|linebreaksbr }}
{% trans "Invoice number:" %}
{{ invoice.formatted_number }}
{% trans "Date:" %}
{{ invoice.created_at|date }}
{% for line in lines %} {% ifchanged line.user_external_id %} {% if not forloop.first %} {% endif %}

{{ line.user_name }}

{% endifchanged %} {% if line.details.check_type_label or line.details.status != 'absence' %} {% endif %} {% endfor %}
{% trans "Description" %} {% trans "Details" %} {% trans "UA" context 'unit amount' %} {% trans "QTY" context 'quantity' %} {% trans "TA" context 'total amount' %}
{% if line.details %} {% ifchanged line.user_external_id line.label %} {{ line.label }}
{% if line.agenda %} {{ line.agenda.label }}
{% endif %} {% endifchanged %} {% else %} {{ line.event_date|date:"d/m/Y" }} - {{ line.label }}
{% if line.agenda %} {{ line.agenda.label }}
{% endif %} {% endif %} {% if line.details.check_type_label %} {{ line.details.check_type_label }} {% elif line.details.status == 'absence' %} {% trans "Absence" %} {% endif %}
{% if line.details.dates and not line.agenda.partial_bookings %} {% for d in line.details.dates %}{{ d|parse_date|date:"Dd" }}{% if not forloop.last %}, {% endif %}{% endfor %} {% endif %} {% blocktrans with amount=line.unit_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %} {{ line.quantity|floatformat }} {% blocktrans with amount=line.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% trans "Total amount to be paid before:" %} {{ invoice.date_payment_deadline }} {% blocktrans with amount=invoice.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% if regie.invoice_custom_text %}
{{ regie.invoice_custom_text|safe }}
{% endif %}