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

Détails de l'achat
{% if achat.reliquat != 0 %} {% endif %} {% if achat.numFacture != '' %} {% endif %} {% if achat.estCloture %} {% endif %} {% if achat.notes %} {% endif %}
N° commande {{ achat.numCommande }}
Fournisseur {{ achat.fournisseur.raisonSociale }}
Total HT {{ achat.totalHt|number_format(2, '.', ' ') }}
Total TVA {{ achat.totalTva|number_format(2, '.', ' ') }}
Total TTC {{ achat.totalTtc|number_format(2, '.', ' ') }}
Total payé {{ achat.totalPaye|number_format(2, '.', ' ') }}
Reliquat {{ achat.reliquat|number_format(2, '.', ' ') }}
Date commande {% if achat.dateCommande %}{{ achat.dateCommande|date('d-m-Y') }}{% endif %}
N° de facture {% if achat.scanFacture %} {{ achat.numFacture }} {% else %} {{ achat.numFacture }} {% endif %}
Date facturation {% if achat.dateFacturation %}{{ achat.dateFacturation|date('d-m-Y') }}{% endif %}
Date mise à jour {% if achat.dateMiseajour %}{{ achat.dateMiseajour|date('d-m-Y') }}{% endif %}
Est clôturée {% if achat.estCloture %}Oui{% else %}Non{% endif %}
Date clôture {% if achat.dateCloture %}{{ achat.dateCloture|date('d-m-Y') }}{% endif %}
Notes {{ achat.notes }}
Documents
Retour {% if app.user.aDroit('achat_modification') %} Modifier Exporter {% endif %} {% if app.user.aDroit('achat_suppression') %} {% endif %}
{{ form_start(delete_form) }} {{ form_end(delete_form) }}
{% if app.user.aDroit('achat_livraison') %}
Réceptions
{% if app.user.aDroit('achat_livraison') and achat.getAproduitsNonLivres()|length > 0 %} {% endif %}
{% for livraison in achat.livraisons %} {% endfor %}
N° BL Date livraison Actions
{{ livraison.numBonLivraison }} {{ livraison.dateLivraison|date('d-m-Y') }} {% if app.user.aDroit('achat_livraison') %} {% endif %}
{% endif %} {% if app.user.aDroit('achat_paiement') %}
Paiements
{% if app.user.aDroit('achat_paiement') %} {% endif %}
{% for paiement in achat.paiements %} {% endfor %}
Montant Mode Date Actions
{{ paiement.totalPaye }} {{ paiement.modePaiement }} {{ paiement.datePaiement|date('d-m-Y') }} {% if app.user.aDroit('achat_paiement') %} {% endif %}
{% endif %} {% if app.user.aDroit('achat_consignation') %}
Consignations
{% if app.user.aDroit('achat_consignation') %} {% endif %}
{% for livraison in achat.consignations %} {% endfor %}
N° CNS Date consignation Colis Actions
{{ livraison.numConsignation }} {{ livraison.dateLivraison|date('d-m-Y') }} {{ livraison.nbrColis }} {% if app.user.aDroit('achat_consignation') %} {% endif %}
{% endif %} {% if app.user.aDroit('achat_avoir') %}
Retours
{% if app.user.aDroit('achat_avoir') %} {% endif %}
{% for livraison in achat.retours %} {% endfor %}
N° retour Date retour Actions
{{ livraison.numRetour }} {{ livraison.dateRetour|date('d-m-Y') }} {% if app.user.aDroit('achat_avoir') %} {% endif %}
{% endif %}
Produits
{% if achat.getAproduitsNonLivres() %} {% for vproduit in achat.getAproduitsNonLivres() %} {% endfor %} {% endif %} {% if achat.getAproduitsLivres() %} {% for vproduit in achat.getAproduitsLivres() %} {% endfor %} {% endif %}
Référence Produit Quantité Prix U Remise Total HT Actions
Reste à livrer
{{ vproduit.produit.reference }} {{ vproduit.produit.titre }} {{ vproduit.getQuantiteLivre() }} / {{ vproduit.quantite }} {{ vproduit.getPrixVente()|number_format(2, '.', ' ') }} {{ vproduit.remise }}% {{ (vproduit.getPrixHt()*vproduit.quantite)|number_format(2, '.', ' ') }} {% if app.user.aDroit('achat_modification') %} {% endif %}
Produits livrés
{{ vproduit.produit.reference }} {{ vproduit.produit.titre }} {{ vproduit.getQuantiteLivre() }} / {{ vproduit.quantite }} {{ vproduit.getPrixVente()|number_format(2, '.', ' ') }} {{ vproduit.remise }}% {{ (vproduit.getPrixHt()*vproduit.quantite)|number_format(2, '.', ' ') }} {% if app.user.aDroit('achat_modification') %} {% endif %}
{% endblock %} {% block javascripts %} {% endblock %}