{% extends 'base.html.twig' %} {% form_theme form 'form/fields.html.twig' %} {% block body %}

{{ form_start(form, {'attr': {'class': 'form-horizontal'}}) }}
Nouvel Avoir
Commande N°: {{ vente.numCommande }}
Client: {{ vente.client.raisonSociale }}
Date commande: {% if vente.dateCommande %}{{ vente.dateCommande|date('d-m-Y') }}{% endif %}
Total HT: {{ vente.totalHT }}
Total TVA: {{ vente.totalTVA }}
Total TTC: {{ vente.totalTTC }}

{{ form_widget(form) }}
{% for aproduit in vente.getVproduits() %} {% if aproduit is not null %} {% endif %} {% endfor %}
Produit Qtt commandée Qtt retour Remise Prix HT
{{ aproduit.produit.titre }}
Réf: {{ aproduit.produit.reference }}
{{ aproduit.getQuantiteLivre() }} / {{ aproduit.quantite }} {{ aproduit.getTauxRemise() }}
Retour
{{ form_end(form) }} {% endblock %} {% block javascripts %} {% endblock %}