{% extends "YOUCommercantBundle::layout.html.twig" %} {% block container %}
{% import 'YOUCommercantBundle::macros.html.twig' as macros %}
{{ macros.ariane({ 'Tableau de bord':{'url':path('you_commercant_secured_homepage')}, 'Ma boutique':{} }) }}

Commandes terminées



{% for flashMessage in app.session.flashbag.get('message') %}
{{ flashMessage }}
{% endfor %}
{% for commande in commandes %} {% set view = true %} {% set montant = 0 %} {% for content in commande.content %} {% if content.statut < 9 %} {% if content.statut > 0 %} {% set view = false %} {% endif %} {% else %} {% set montant = montant+content.livraisonPrice+(content.count*content.prix) %} {% endif %} {% endfor %} {% if view %} {# #} {% endif %} {% endfor %}
N° de commande
Date commande
Client
Montant réglé
Montant encaissé*
Actions
{{ commande.commande.id }} {{ commande.commande.date|date('d/m/Y \à H:i') }} {% if commande.commande.panier.adresseFacturation.civilite == 0 %}M.{% endif %} {% if commande.commande.panier.adresseFacturation.civilite == 1 %}Mlle{% endif %} {% if commande.commande.panier.adresseFacturation.civilite == 2 %}Mme{% endif %} {{ commande.commande.panier.adresseFacturation.prenom }} {{ commande.commande.panier.adresseFacturation.nom|upper }} {% if commande.paymentOffline > 0 %} {{ commande.paymentOnline|toeuro }} / {{ commande.montant|toeuro }} {% else %} {{ commande.montant|toeuro }} {% endif %} {{ (commande.paymentOnline-(((commande.paymentOnline/100)*commande.percentCommission)+commande.eurosCommission))|toeuro }}
{% endblock %}