{% extends 'impression/base.html.twig' %} {% block stylesheets %} {% endblock %} {% block body %} {% for vente in ventes %}
{{ vente.getMagasin().titre }}
{{ vente.getMagasin().adresse }}
Téléphone: {{ vente.getMagasin().telephone }}
Télécopie: {{ vente.getMagasin().fax }}
Facture N°: {{ vente.numFacture() }}
Etablie le: {{ vente.getDateFacturation()|date("d/m/Y") }}
{% if vente.getOrganisme() %} {{ vente.getOrganisme.getRaisonSociale() }}
Pour le compte de: {{ vente.getClient.getRaisonSociale() }}
{% if(vente.getOrganisme.getAdresse()) %}{{ vente.getOrganisme.getAdresse() }}
{% endif %} {% if(vente.getOrganisme.getTelephone()) %}Téléphone: {{ vente.getOrganisme.getTelephone() }}
{% endif %} {% if(vente.getOrganisme.getIce()) %}ICE: {{ vente.getOrganisme.getIce() }}
{% endif %} {% else %} {{ vente.getClient.getRaisonSociale() }}
{% if(vente.getClient.getAdresse()) %}{{ vente.getClient.getAdresse() }}
{% endif %} {% if(vente.getClient.getTelephone()) %}Téléphone: {{ vente.getClient.getTelephone() }}
{% endif %} {% if(vente.getClient.getIce()) %}ICE: {{ vente.getClient.getIce() }}
{% endif %} {% endif %} {{ vente.getObjet() }}
{% if vente.getReparation() %} {% if vente.getReparation().getVehicule() %}
Informations sur le véhicule Immatriculation: {{ vente.getReparation().getVehicule.getImmatriculation() }}
Marque: {{ vente.getReparation().getVehicule.getMarque() }}
Modèle: {{ vente.getReparation().getVehicule.getModele() }}
Kilometrage: {{ vente.getReparation().getKilometrage() }}
Mise en circulation: {{ vente.getReparation().getVehicule.getDateMiseEnCirculation()|date("d/m/Y") }}
N chassis: {{ vente.getReparation().getVehicule.getNumChassis() }}
Type: {{ vente.getReparation().getVehicule.getType() }}
N moteur: {{ vente.getReparation().getVehicule.getNumMoteur() }}
N B.V:
{% endif %} {% endif %}
{% if vente.getReparation() %} {% if vente.getReparation().getVehicule() %} {% endif %} {% endif %} {% for vp in vente.getVproduits() %} {% endfor %} {% if vente.getReparation() %} {% if vente.getReparation().getVehicule() %} {% endif %} {% endif %}
Désignation Quantité Prix Unit Remise Total HT
{% if vente.getReparation().getDemandeClient() %} {{ vente.getReparation().getDemandeClient()|upper|nl2br|raw }}
{% endif %}
{{ vp.getProduit().getTitre() }} {% if vp.getProduit().getReference() %}
Réf: {{ vp.getProduit().getReference() }}
{% endif %} {% if (vp.getProduit().getCategorie().getAfficherDetailsProduit()) and (not vp.getProduit().getEstService()) %} {% if vp.getProduit().getMarque() %}
Marque: {{ vp.getProduit().getMarque() }}
{% endif %} {% if vp.getProduit().getModele() %}
Modèle: {{ vp.getProduit().getModele() }}
{% endif %} {% for attribut in vp.getProduit().getAttributValues() %} {% if attribut.getValue() %}
{{ attribut.getProduitAttribut.getLabel() }}: {{ attribut.getValue() }}
{% endif %} {% endfor %} {% endif %}
{{ vp.getQuantite() }} {{ vp.getPrixHt()|number_format(2, '.', ' ') }} {{ vp.getTauxRemise()|number_format(2, '.', ' ') }} {{ vp.getTotalHt()|number_format(2, '.', ' ') }}
{% if vente.getReparation().getObservations() %}
{{ vente.getReparation().getObservations()|upper|nl2br|raw }} {% endif %}
Total HT {{ vente.getTotalHt()|number_format(2, '.', ' ') }}
Total TVA (20%) {{ vente.getTotalTva()|number_format(2, '.', ' ') }}
Total TTC {{ vente.getTotalTtc()|number_format(2, '.', ' ') }}

Arrêtée la présente facture à la somme de:
{{ chiffre_en_lettre.int2str(vente.getTotalTtc()|number_format(2, '.', ''))|upper }}

{% if vente.getPaiements() and date(vente.getDateFacturation()) > date('-1month') %} Règlements:
{% for paiement in vente.getPaiements() %} {{ paiement.totalPaye|number_format(2, '.', ' ') }} DH {{ paiement.modePaiement }} {% if paiement.reference %}réf:{{ paiement.reference }}{% endif %}
{% endfor %} {% endif %}
{% endfor %} {% endblock %}