{% if logo_uri or preview %}{% endif %}
{{ branding.display_name|default:document.seller.name }}

{% if is_quote %}DEVIS{% elif document.type == "credit_note" %}AVOIR{% elif document.type == "progress_invoice" %}FACTURE D'AVANCEMENT{% else %}FACTURE{% endif %}

{{ document.number }}

ÉMETTEUR

{{ document.seller.name }}
{{ document.seller.address_line1 }}{% if document.seller.address_line2 %}
{{ document.seller.address_line2 }}{% endif %}{% if document.seller.postal_code or document.seller.city or document.seller.country_code %}
{{ document.seller.postal_code }} {{ document.seller.city }}{% if document.seller.country_code %} · {{ document.seller.country_code }}{% endif %}{% endif %}{% if document.seller.siren %}
SIREN : {{ document.seller.siren }}{% endif %}{% if document.seller.siret %}
SIRET : {{ document.seller.siret }}{% endif %}{% if document.seller.vat_number %}
TVA : {{ document.seller.vat_number }}{% endif %}{% if document.seller.email %}
{{ document.seller.email }}{% endif %}

DESTINATAIRE

{{ document.buyer.name|default:"Client à préciser" }}
{{ document.buyer.address_line1 }}{% if document.buyer.address_line2 %}
{{ document.buyer.address_line2 }}{% endif %}{% if document.buyer.postal_code or document.buyer.city or document.buyer.country_code %}
{{ document.buyer.postal_code }} {{ document.buyer.city }}{% if document.buyer.country_code %} · {{ document.buyer.country_code }}{% endif %}{% endif %}{% if document.buyer.siren %}
SIREN : {{ document.buyer.siren }}{% endif %}{% if document.buyer.vat_number %}
TVA : {{ document.buyer.vat_number }}{% endif %}
Émission : {{ document.issue_date }} · {% if is_quote %}Validité{% else %}Échéance{% endif %} : {{ document.due_date }}{% if document.reference %}
Référence : {{ document.reference }}{% endif %}{% if document.buyer_reference %}
Référence acheteur : {{ document.buyer_reference }}{% endif %}{% if document.subject %}
Objet : {{ document.subject }}{% endif %}
{% for line in lines %}{% endfor %}
DésignationQtéPU HTRemiseTVATotal HT
{{ line.description|linebreaksbr }}{% if line.item_reference %}
{{ line.item_reference }}{% endif %}
{{ line.quantity|floatformat:"-4" }}
{{ line.unit_code }}
{{ line.unit_price_excluding_tax|floatformat:"-4" }}{{ line.discount_percent|floatformat:"-2" }} %{{ line.vat_rate|floatformat:"-2" }} %{{ line.total_excluding_tax|floatformat:2 }}
{% for tax in taxes %}{% endfor %}{% if document.rounding_amount %}{% endif %}{% if not is_quote and document.type != "credit_note" %}{% endif %}
Total HT{{ document.total_excluding_tax|floatformat:2 }} {{ document.currency_code }}
TVA {{ tax.rate|floatformat:"-2" }} % · base {{ tax.basis|floatformat:2 }}{{ tax.tax|floatformat:2 }} {{ document.currency_code }}
Ajustement d'arrondi{{ document.rounding_amount|floatformat:2 }} {{ document.currency_code }}
Total TTC{{ document.total_including_tax|floatformat:2 }} {{ document.currency_code }}
Net à payer à l'émission{{ document.amount_due|floatformat:2 }} {{ document.currency_code }}
{% if document.source_invoice_uid %}

Facture corrigée : {{ source_invoice_number }}

{% endif %}

{{ document.payment_terms|default:''|linebreaksbr }}

{% if document.seller.bank_iban %}

IBAN : {{ document.seller.bank_iban }} · BIC : {{ document.seller.bank_bic }}

{% endif %}

{{ document.notes|default:''|linebreaksbr }}

{{ document.seller.invoice_footer|default:''|linebreaksbr }}

{% if document.seller.legal_form or document.seller.share_capital or document.seller.rcs_city or document.seller.rcs_number %}

{% if document.seller.legal_form %}{{ document.seller.legal_form }}{% endif %}{% if document.seller.share_capital %}{% if document.seller.legal_form %} · {% endif %}Capital : {{ document.seller.share_capital }}{% endif %}{% if document.seller.rcs_city or document.seller.rcs_number %}{% if document.seller.legal_form or document.seller.share_capital %} · {% endif %}RCS {{ document.seller.rcs_city }} {{ document.seller.rcs_number }}{% endif %}

{% endif %}