{% load i18n %} {% block cell-content %} {% if errors or items or not cell.hide_if_empty %} {% if title %}
{% trans "Number" %} | {% trans "Label" %} | {% trans "Issue date" %} | {% if with_payment_limit_date %}{% trans "Payment limit date" %} | {% endif %}{% trans "Amount" %} | {% if with_amount_paid %}{% trans "Amount already paid" %} | {% endif %}||
---|---|---|---|---|---|---|---|
{{ item.display_id }} | {{ item.subject }} |
{{ item.creation_date|date:"SHORT_DATE_FORMAT" }}
{% if item.real_creation_date %}
({% blocktrans with cdate=item.real_creation_date|date:"SHORT_DATE_FORMAT" context "invoice" %}created on {{ cdate }}{% endblocktrans %}) {% endif %} |
{% if with_payment_limit_date %}{{ item.payment_limit_date|date:"SHORT_DATE_FORMAT" }} | {% endif %} {% if with_amount_paid %}{% if item.amount %}{% blocktrans with amount=item.amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}{% endif %} | {% if item.amount_paid %}{% blocktrans with amount=item.amount_paid|floatformat:"2" %}{{ amount }}€{% endblocktrans %}{% endif %} | {% else %}
{% blocktrans with amount=item.total_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}
{% if item.collected_amount %}
({% trans "collected:" context "collected amount" %} {% blocktrans with amount=item.collected_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}) {% elif item.remaining_amount and item.remaining_amount != item.total_amount %} ({% trans "left:" context "left to pay" %} {% blocktrans with amount=item.remaining_amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}) {% endif %} |
{% endif %}
{% if item.regie.is_remote %}
{% with cell_crypto_reference=cell.crypto_reference item_crypto_id=item.crypto_id item_crypto_payer_external_id=item.crypto_payer_external_id %}
{% trans "View" %}
{% if cell.include_pay_button %}{% if item.online_payment and item.amount >= item.regie.payment_min_amount and not item.waiting_date %}{% trans "and pay" %}{% endif %}{% endif %}
{% if item.has_pdf %}
{% if item.collected_amount %}{% trans "Invoice" %}{% elif item.has_dynamic_pdf is not None %}{% trans "Initial invoice" %}{% else %}{% trans "Download" %}{% endif %} {% endif %} {% if item.has_dynamic_pdf is True %} {% if item.remaining_amount %}{% trans "Invoice" %}{% else %}{% trans "Paid invoice" %}{% endif %} {% elif item_crypto_payer_external_id and item.has_dynamic_pdf is False and not item.collected_amount %} {% trans "Invoice" %} {% endif %} |
{% endwith %}
{% endif %}