{% load i18n %} {% for line in lines %} {% ifchanged line.user_external_id %} {% endifchanged %} {% ifchanged line.user_external_id line.activity_label %} {% if line.activity_label or not forloop.first %} {% endif %} {% endifchanged %} {% if line.details.check_type_label or line.details.status != 'absence' or line.details.partial_bookings %} {% endif %} {% endfor %} {% if basket and basket.credit_amount %} {% elif invoice.collection %} {% if invoice.paid_amount %} {% endif %} {% else %} {% endif %}
{{ line.user_name }}
{% trans "Services" %} {% trans "Details" %} {% trans "Unit amount" %} {% trans "Quantity" %} {% trans "Total amount" %}
{{ line.activity_label|default:" " }}
{{ line.label }} {% if not line.details.partial_bookings %} {% if line.details.check_type_label %} {{ line.details.check_type_label }} {% elif line.details.status == 'absence' %} {% trans "Absence" %} {% endif %} {% endif %} {% if document_model == 'middle' and 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 invoice.paid_amount %} {% trans "Total amount:" %} {% else %} {% trans "Debt amount:" %} {% endif %} {% blocktrans with amount=invoice.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% trans "Paid amount:" %} {% blocktrans with amount=invoice.paid_amount_before_collect|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% trans "Debt amount:" %} {% blocktrans with amount=invoice.collected_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% trans "Debt forwarded to the Treasury on:" %} {{ invoice.collection.created_at|date:"d/m/Y" }}
{% 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 %}