{% load i18n %} {% for line in lines %} {% ifchanged line.user_external_id %} {% if document_model == 'middle' %} {% endif %} {% endifchanged %} {% if document_model == 'middle' %} {% endif %} {% if line.details.check_type_label or line.details.status != 'absence' or line.details.partial_bookings %} {% endif %} {% endfor %} {% if basket and basket.credit_amount %} {% else %} {% endif %}
{{ line.user_name }}
{% trans "Services" %}{% trans "Details" %}{% trans "UA" context 'unit amount' %} {% trans "QTY" context 'quantity' %} {% trans "TA" context 'total amount' %}
{% if not line.details.partial_bookings %} {% ifchanged line.user_external_id line.label %} {{ line.label }}
{% if line.activity_label %} {{ line.activity_label }}
{% endif %} {% endifchanged %} {% if line.details.check_type_label %} {{ line.details.check_type_label }} {% elif line.details.status == 'absence' %} {% if document_model == 'middle' or line.details.partial_bookings %} {% trans "Absence" %} {% endif %} {% endif %} {% else %} {{ line.label }} {% endif %}
{% if line.display_description %} {{ line.description }} {% 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 "Credit:" %} {% blocktrans with amount=basket.credit_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% trans "Total amount:" %} {% blocktrans with amount=basket.remaining_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% if basket or payments %} {% trans "Total amount:" %} {% else %} {% trans "Total amount to be paid before:" %} {{ invoice.date_payment_deadline }} {% endif %} {% blocktrans with amount=invoice.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}