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

Détails vente {% if vente.estinterne %} Interne {% elseif vente.estfacturee %} Facturé {% else %} En cours {% endif %}
{% if not vente.estfacturee %} Documents {% if app.user.aDroit('vente_modification') and not vente.estinterne and not vente.getVproduitsNonLivres() %} Facturer {% endif %} {% else %} Documents {% if (magasin.notifiable) %} Notifier le client {% endif %} {% endif %}
{% if vente.organisme %} {% endif %} {% if vente.reparation %} {% endif %} {% if vente.estFacturee != 0 %} {% endif %} {% if vente.notes %} {% endif %}
N° commande {{ vente.numCommande }}
Date commande {% if vente.dateCommande %}{{ vente.dateCommande|date('d-m-Y') }}{% endif %}
Organisme {{ vente.organisme.raisonSociale }}
Client {{ vente.client.raisonSociale }}
O.R. {{ vente.reparation }}
Total HT {{ vente.totalHt }}
Total TVA {{ vente.totalTva }}
Total TTC {{ vente.totalTtc }}
Total payé {{ vente.totalPaye }}
N° de facture {% if vente.scanFacture %} {{ vente.numFacture }} {% else %} {{ vente.numFacture }} {% endif %}
Date facturation {% if vente.dateFacturation %}{{ vente.dateFacturation|date('d-m-Y') }}{% endif %}
Notes {{ vente.notes }}
Date mise à jour {% if vente.dateMiseajour %}{{ vente.dateMiseajour|date('d-m-Y') }}{% endif %}
Retour {% if(vente.estFacturee != 1 or app.user.aDroit('vente_modification')) %} Modifier {% endif %} {% if app.user.aDroit('vente_modification') %} Exporter {% endif %} {% if app.user.aDroit('vente_suppression') %} {% endif %}
{{ form_start(delete_form) }} {{ form_end(delete_form) }}
Livraisons
{% if app.user.aDroit('vente_livraison') and vente.getVproduitsNonLivres() %} {% endif %}
{% if vente.livraisons is empty %} {% if app.user.aDroit('vente_livraison') and vente.getVproduitsNonLivres() %} {% endif %} {% else %}
{% for livraison in vente.livraisons %} {% endfor %}
N° BL Date livraison Colis Actions
{{ livraison.numBonLivraison }} {{ livraison.dateLivraison|date('d-m-Y') }} {{ livraison.nbrColis }} {% if app.user.aDroit('vente_livraison') %} {% endif %}
{% endif %}
Paiements
{% if app.user.aDroit('vente_paiement') and vente.getReliquat %} {% endif %}
{% if vente.paiements is empty %} {% if app.user.aDroit('vente_paiement') and vente.getReliquat %} {% endif %} {% else %}
{% for paiement in vente.paiements %} {% endfor %}
Montant Mode Date Actions
{{ paiement.totalPaye }} {{ paiement.modePaiement|capitalize }} {{ paiement.datePaiement|date('d-m-Y') }} {% if app.user.aDroit('vente_paiement') %} {% endif %}
{% endif %}
Avoirs
{% if app.user.aDroit('vente_avoir') %}
{% endif %}
{% if vente.retours is empty %} {% if app.user.aDroit('vente_avoir') %} {% endif %} {% else %}
{% for paiement in vente.retours %} {% endfor %}
N° av. Montant Date Actions
{{ paiement.numRetour }} -{{ paiement.totalTTC }} {{ paiement.dateRetour|date('d-m-Y') }} {% if app.user.aDroit('vente_avoir') %} {% endif %}
{% endif %}
Produits
{% if(vente.estFacturee != 1 or app.user.aDroit('vente_modification')) %} {% endif %}
{% if vente.getVproduitsNonLivres() %} {% for vproduit in vente.getVproduitsNonLivres() %} {% endfor %} {% endif %} {% if vente.getVproduitsLivres() %} {% for vproduit in vente.getVproduitsLivres() %} {% endfor %} {% endif %}
Référence Produit Quantité Prix U Remise Total HT
Reste à livrer
{{ vproduit.produit.reference }} {{ vproduit.produit.titre }} {{ vproduit.getQuantiteLivre() }} / {{ vproduit.quantite }} {{ vproduit.getPrixHt()|number_format(2, '.', ' ') }} {{ vproduit.tauxRemise }}% {{ vproduit.getTotalHt|number_format(2, '.', ' ') }}
Produits livrés
{{ vproduit.produit.reference }} {{ vproduit.produit.titre }} {% if(vproduit.produit.taxable) %} - TVA: {{vproduit.produit.getTauxTva()}}%{% endif %} {{ vproduit.getQuantiteLivre() }} / {{ vproduit.quantite }} {{ vproduit.getPrixHt()|number_format(2, '.', ' ') }} {{ vproduit.tauxRemise }}% {{ vproduit.getTotalHt|number_format(2, '.', ' ') }}
{% endblock %} {% block javascripts %} {% endblock %}