{% load static %} Invoice {% if object.total_vat_incl >= 0 %}

Facture {{ object.number }}

{% else %}

Avoir {{ object.number }}

{% endif %}
Date
{{ object.date|date:"d/m/Y" }}
Conditions de paiement
{{ object.payment_mode }}
{% if object.customer_vat_id %}

Détail Client

Numéro de TVA
{{ object.customer_vat_id }}
{% endif %} {% for row in object.invoiceline_set.all %} {% endfor %} {% for vat in object.invoicevat_set.all %} {% endfor %}
Description Quantité Prix unitaire HT TVA Montant HT
{{ row.title }} {{ row.quantity }} {{ row.unit }} {{ row.unit_price|floatformat:2 }} € {{ row.vat_rate }} % {{ row.price_vat_excl|floatformat:2 }} €
{{ row.descritiption }}
Total HT {{ object.total_vat_excl|floatformat:2 }} €
TVA {{ vat.vat_rate }} % {{ vat.price|floatformat:2 }} €
Total TTC {{ object.total_vat_incl|floatformat:2 }} €
{% if object.total_vat_incl >= 0 %}

{{ object.organisation.bottom_comment|linebreaks }}

{% endif %} {% if object.organisation.conditions %}
{{ object.organisation.conditions|safe }}
{% endif %}