{% set snapshot = document.companySnapshot %} {% set company = snapshot ? {nom:snapshot.name, adresse:snapshot.address, codePostal:snapshot.postalCode, ville:snapshot.city, pays:snapshot.country, email:snapshot.email, siret:snapshot.siret, numeroTVA:snapshot.vatNumber} : document.company %} {% set is_quote = document.type == 'quote' %} {% set issue_label = is_quote ? 'Date du document' : 'Date d’émission' %} {% set due_label = is_quote ? 'Date de validité' : 'Date d’échéance' %}
{% if logo %}

{% endif %}
{{ company ? company.nom : 'Votre Entreprise' }}
{% if company %}
{% if company.adresse %}{{ company.adresse }}
{% endif %} {% if company.codePostal or company.ville %}{{ company.codePostal }} {{ company.ville }}
{% endif %} {% if company.pays %}{{ company.pays }}
{% endif %}
{% if company.email %}Email: {{ company.email }}
{% endif %} {% if company.siret %}SIRET: {{ company.siret }}
{% endif %} {% if company.numeroTVA %}TVA: {{ company.numeroTVA }}{% endif %} {% endif %}
{{ document_label|upper }}
{{ document_number }}
{{ issue_label }}: {{ document.issueDate ? document.issueDate|date('d/m/Y') : '-' }}
{{ due_label }}: {{ document.dueDate ? document.dueDate|date('d/m/Y') : '-' }}


{{ document.customerNameSnapshot ?: (document.customer ? document.customer.nom : '-') }}
{% if document.customerAddressSnapshot %}{{ document.customerAddressSnapshot|nl2br }}
{% endif %} {% if document.customerPostalCodeSnapshot or document.customerCitySnapshot %}{{ document.customerPostalCodeSnapshot }} {{ document.customerCitySnapshot }}
{% endif %} {% if document.customerCountrySnapshot %}{{ document.customerCountrySnapshot }}{% endif %} {% if document.customerSiretSnapshot %}
SIRET: {{ document.customerSiretSnapshot }}{% endif %}


{% if intro_html %}
{{ intro_html|raw }}
{% endif %} {% if source_info %}
{% if source_info.title %}
{{ source_info.title }}
{% endif %}
{{ source_info.detail }}
{% endif %} {% for line in display_lines %} {% else %} {% endfor %}
Description Qté Prix unit. HT Total HT
{{ line.label }}
{% if line.description_html %}
{{ line.description_html|raw }}
{% endif %} {% if line.discount_rate > 0 %}
Remise : {{ line.discount_rate|number_format(2, ',', ' ') }} % (-{{ line.discount_amount|number_format(2, ',', ' ') }} {{ currency_symbol }})
{% endif %}
{{ line.quantity|number_format(line.deposit ? 0 : 3, ',', ' ') }} {{ line.unit_price|number_format(2, ',', ' ') }} {{ currency_symbol }} {{ line.subtotal|number_format(2, ',', ' ') }} {{ currency_symbol }}
Aucune ligne


{% if document.totalDiscountHt != 0 %}{% endif %} {% for rate, vat in vat_summary %} {% else %} {% endfor %} {% if not is_quote %} {% endif %}
Sous-total HT:{{ document.subtotalHt|number_format(2, ',', ' ') }} {{ currency_symbol }}
Remise HT:{{ document.totalDiscountHt|number_format(2, ',', ' ') }} {{ currency_symbol }}
TVA ({{ rate|number_format(2, ',', ' ') }}%):{{ vat.tax|number_format(2, ',', ' ') }} {{ currency_symbol }}
TVA:0,00 {{ currency_symbol }}
Total TTC:{{ document.totalTtc|number_format(2, ',', ' ') }} {{ currency_symbol }}
Paiements reçus:{{ document.totalPaid|number_format(2, ',', ' ') }} {{ currency_symbol }}
Reste dû:{{ document.balanceDue|number_format(2, ',', ' ') }} {{ currency_symbol }}



{% if is_quote %}
Date et signature précédées de la mention « Bon pour accord »





{% else %}
Informations de paiement

Mode de paiement: Virement bancaire
{% if bank_details %} {% if bank_details.name %}{% endif %} {% if bank_details.holder %}{% endif %} {% if bank_details.iban %}{% endif %} {% if bank_details.bic %}{% endif %}
Coordonnées bancaires
Banque{{ bank_details.name }}
Titulaire{{ bank_details.holder }}
IBAN{{ bank_details.iban }}
BIC{{ bank_details.bic }}
{% endif %}
{% endif %} {% if footer_notes_html %}

Notes
{{ footer_notes_html|raw }}
{% endif %}