{% load static %}

Liste des factures : {{ data|length }} reçue(s)

{% if data %}
FACTURE
DATE
ÉCHÉANCE
MONTANT
ÉTAT
{% for facture in data %}
{{ facture.name }}
{{ facture.structured_communication }}
{{ facture.invoice_date }}
{{ facture.invoice_date_due }}
{{ facture.amount_total|floatformat:2 }}€
{% if facture.payment_state == "paid" %} Payée {% else %} Impayée {% endif %}
{% if facture.link %} {% endif %}
{% endfor %}
{% else %}

Aucune facture à afficher.

{% endif %} ---------------------version après endpoint {% load static %}

Solde total à payer : {{ data.amount|floatformat:2 }}€

Alimenter le portefeuille Payer
{% if data.unpaid_invocies %}

Factures IMPAYÉES

FACTURE
DATE
ÉCHÉANCE
TOTAL
SOLDE
{% for facture in data.unpaid_invocies %}
{{ facture.name }}
{{ facture.structured_communication }}
{{ facture.emission_date }}
{{ facture.due_date }}
{{ facture.total_amount }}€
{{ facture.due_amount|default:facture.total_amount }}€
{% endfor %}
{% endif %} {% if data.paid_invoices %}

Factures PAYÉES

FACTURE
DATE
ÉCHÉANCE
TOTAL
{% for facture in data.paid_invoices %}
{{ facture.name }}
{{ facture.structured_communication }}
{{ facture.emission_date }}
{{ facture.due_date }}
{{ facture.total_amount }}€
{% endfor %}
{% endif %}