{% extends 'impression/base.html.twig' %} {% block stylesheets %} {% endblock %} {% block body %}
{{ livraison.achat.getMagasin().titre }}
{{ livraison.achat.getMagasin().adresse }}
Téléphone: {{ livraison.achat.getMagasin().telephone }}
Télécopie: {{ livraison.achat.getMagasin().fax }}
Bon de reception N° {{ livraison.getNumBonReception() }}
Etablie le: {{ livraison.getDateReception()|date("d/m/Y") }}
{{ livraison.achat.getFournisseur().getRaisonSociale() }}
{% if(livraison.achat.getFournisseur().getAdresse()) %}{{ livraison.achat.getFournisseur().getAdresse() }}
{% endif %} {% if(livraison.achat.getFournisseur().getTelephone()) %}Téléphone: {{ livraison.achat.getFournisseur().getTelephone() }}
{% endif %}

{% set total_ht = 0 %} {% set total_tva = 0 %} {% set total_ttc = 0 %} {% for vp in livraison.livraisons() %} {% if vp.getQuantite() > 0 %} {% set prix_ht = vp.getAchatProduit().getPrixVente() %} {% set quantite = vp.getQuantite() %} {% set remise = vp.getAchatProduit().getRemise() %} {% set taux_tva = vp.getAchatProduit().getProduit().getTauxTva() %} {% set total_ligne_ht = vp.getAchatProduit().getPrixHt() * quantite %} {% set total_ligne_tva = total_ligne_ht * (taux_tva / 100) %} {% set total_ht = total_ht + total_ligne_ht %} {% set total_tva = total_tva + total_ligne_tva %} {% endif %} {% endfor %}
Désignation Quantité Prix Unit Remise Total HT
{{ vp.getAchatProduit().getProduit().getTitre() }} {% if vp.getAchatProduit().getProduit().getReference() %}
Réf: {{ vp.getAchatProduit().getProduit().getReference() }}
{% endif %} {% if vp.getAchatProduit().getProduit().getCategorie().getAfficherDetailsProduit() %} {% if vp.getAchatProduit().getProduit().getMarque() %}
Marque: {{ vp.getAchatProduit().getProduit().getMarque() }}
{% endif %} {% if vp.getAchatProduit().getProduit().getModele() %}
Modèle: {{ vp.getAchatProduit().getProduit().getModele() }}
{% endif %} {% for attribut in vp.getAchatProduit().getProduit().getAttributValues() %} {% if attribut.getValue() %}
{{ attribut.getProduitAttribut.getLabel() }}: {{ attribut.getValue() }}
{% endif %} {% endfor %} {% endif %}
{{ quantite }} {{ prix_ht|number_format(2, '.', ' ') }} {{ remise|number_format(2, '.', ' ') }} {{ total_ligne_ht|number_format(2, '.', ' ') }}
{% set total_ttc = total_ht + total_tva %}
Total HT {{ total_ht|number_format(2, '.', ' ') }}
Total TVA {{ total_tva|number_format(2, '.', ' ') }}
Total TTC {{ total_ttc|number_format(2, '.', ' ') }}

Arrêtée le présent bon à la somme de:
{{ chiffre_en_lettre.int2str(total_ttc|number_format(2, '.', ''))|upper }}
{{ livraison.achat.getMagasin().footerDocuments }}
{% endblock %}