{% extends "lingo/invoicing/print_document_base.html" %} {% load i18n %} {% block document-label %}{{ credit.label }}{% endblock %} {% block informations %}
{% trans "Credit number:" %}
{{ credit.formatted_number }}
{% if credit.previous_invoice %}
{% trans "Initial invoice number:" %}
{{ credit.previous_invoice.formatted_number }}
{% endif %}
{% trans "Date:" %}
{{ credit.date_invoicing|default:credit.created_at|date }}
{% endblock %} {% block content %} {% 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 %} {% endfor %}
{{ 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' %} {% if document_model == 'middle' %} {% trans "Absence" %} {% endif %} {% 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 "Total amount:" %} {% blocktrans with amount=credit.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% if regie.invoice_custom_text %}
{{ regie.invoice_custom_text|safe }}
{% endif %} {% if document_model == 'full' and lines_for_details %}

{% trans "Detail of service days" %}

{% for line in lines_for_details %} {% ifchanged line.user_external_id %} {% endifchanged %} {% ifchanged line.user_external_id line.activity_label %} {% if line.activity_label or not forloop.first %} {% endif %} {% endifchanged %} {% endfor %}
{{ line.user_name }}
{% trans "Services" %} {% trans "Details" %}
{{ 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 %} {{ line.description }}
{% endif %} {% endblock %}