{% extends 'base-pdf.html.twig' %} {% block body %}

{{ecriture.typedocument}}  {{ecriture.numdocument}}

{{entreprise.nom}}

{{entreprise.adresse}}

{{entreprise.codepostal}} {{entreprise.ville}}

{{entreprise.telephone1}}

{{entreprise.mail1}}

{{entreprise.agrement}}

Client :

{{client.nom}} {{client.prenom}}

{{client.adresse}}

{{client.codepostal}} {{client.ville}}

{{client.mail1}}

Etat document : {{ecriture.etatdocument}}

Mode de paiement : {{ecriture.modepaiement.code}}

Intervenant : {{ecriture.vendeur.Nom}} {{ecriture.vendeur.prenom}}

{% if ecriture.libelle %}

{{ecriture.libelle}}

{% endif %}
{% if (lignes is defined) and (lignes|length >0) %} {% for l in lignes %} {% if l.detailsligne %} {% endif %} {% endfor %}
Qté Description Prix HT Remise Total ligne
{{l.quantite}} {{l.article.description}} {{l.prixht|format_currency('EUR')}} {{l.remise|format_currency('EUR')}} {{l.getTotalHTLigne|format_currency('EUR')}}
{{l.detailsligne}}
{% else %}

Aucune ligne d'écriture n'a encore été enregistrée.

{% endif %}
Total HT : {{ecriture.getTotalHtEcriture()|format_currency('EUR') }}
Total TTC : {{ecriture.getTotalTTCEcriture()|format_currency('EUR') }}
Remise globale : {{ecriture.getRemiseGlobale()|format_currency('EUR') }}
Déjà payé : {{ecriture.getTotalAcomptesEcriture()|format_currency('EUR') }}
Total TVA {{ecriture.getTotalTVAEcriture()|format_currency('EUR') }}
Reste à payer : {{ecriture.getResteAPayer()|format_currency('EUR') }}
{% endblock %}