{% load i18n lingo %} {% trans "Demat:" %} {{ invoice.payer_demat|yesno }} {% trans "Direct debit:" %} {{ invoice.direct_debit|yesno }} {% if not pool.draft %} {% trans "Publication date:" %} {{ invoice.date_publication|date:"d/m/Y" }} {% trans "Payment deadline:" %} {{ invoice.date_payment_deadline|date:"d/m/Y" }} {% trans "Due date:" %} {{ invoice.date_due|date:"d/m/Y" }} {% if invoice.date_debit %} {% trans "Debit date:" %} {{ invoice.date_debit|date:"d/m/Y" }} {% endif %} {% endif %} {% for line in object_list %} {% if line.pool %} {% url 'lingo-manager-invoicing-pool-journal' regie_pk=regie.pk pk=line.pool.campaign_id pool_pk=line.pool.pk as journal_url %} {% endif %} {% ifchanged line.user_external_id %} {% if line.pool %} {{ line.user_name }} {% else %} {{ line.user_name }} {% endif %} {% trans "Description" %} {% trans "Amount" %} {% trans "Quantity" %} {% trans "Subtotal" %} {% endifchanged %} {% if line.pool %}{% endif %}{% if not line.details %}{{ line.event_date|date:"d/m/Y" }} - {% endif %}{{ line.label }}{% if line.pool %}{% endif %} {% if line.details.check_type_label %} - {{ line.details.check_type_label }} {% elif line.details.status == 'presence' %} - {% trans "Presence" %} {% elif line.details.status == 'absence' %} - {% trans "Absence" %} {% endif %} {% if line.details.dates %} - {% 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 }} {% blocktrans with amount=line.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %} {% endfor %} {% if not pool.draft %} {% trans "Payments" %} {% trans "Payment" context 'payment' %} {% trans "Date" context 'payment' %} {% trans "Type" context 'payment' %} {% trans "Amount" %} {% for invoice_payment in invoice_payments %} {{ invoice_payment.payment.formatted_number }} {{ invoice_payment.created_at|date:"DATETIME_FORMAT" }} {{ invoice_payment.payment.payment_type.label }} {% blocktrans with amount=invoice_payment.amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %} {% empty %} {% trans "No payments for this invoice" %} {% endfor %} {% if invoice.paid_amount %} {% trans "Paid amount:" %} {% blocktrans with amount=invoice.paid_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %} {% endif %} {% if invoice.remaining_amount %} {% trans "Remaining amount:" %} {% blocktrans with amount=invoice.remaining_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %} {% endif %} {% endif %}