{% load i18n %} {% for invoice in object_list %} {% if pool.draft %} {% blocktrans with invoice_number=invoice.formatted_number number=invoice.pk cdate=invoice.created_at|date:'d/m/Y' payer_id=invoice.payer_external_id payer_name=invoice.payer_name amount=invoice.total_amount %}Invoice {{ invoice_number }} dated {{ cdate }} addressed to {{ payer_name }}, amount {{ amount }}€{% endblocktrans %} {% else %} {% if invoice.cancelled_at %} {% trans "Cancelled" context "invoice" %} {% elif invoice.collection %} {% if invoice.collection.draft %}{% trans "Under collection" %}{% else %}{% trans "Collected" context "invoice" %}{% endif %} {% elif invoice.remaining_amount > 0 and invoice.paid_amount > 0 %} {% trans "Partially paid" %} {% elif invoice.remaining_amount == 0 %} {% trans "Paid" %} {% endif %} {% blocktrans with invoice_number=invoice.formatted_number number=invoice.formatted_number cdate=invoice.created_at|date:'d/m/Y' payer_id=invoice.payer_external_id payer_name=invoice.payer_name amount=invoice.total_amount %}Invoice {{ invoice_number }} dated {{ cdate }} addressed to {{ payer_name }}, amount {{ amount }}€{% endblocktrans %} {% endif %} - {% if not invoice.collection and not invoice.cancelled_at %}{% trans "download (initial)" %}{% else %}{% trans "download" %}{% endif %} {% endfor %}