{% 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')}, 'Mes commandes':{}, }) }}
{% for flashMessage in app.session.flashbag.get('message') %}
{{ flashMessage }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('adddeclinaison') %}
{{ flashMessage }}
{% endfor %}

Commandes en cours




{% if liste|length > 0 %}
Résumé
Votre rôle
Action
{% for commande in liste|reverse %} {% if commande.termine == false %}

N° : {{ commande.commande.commande.id }}

Date : {{ commande.commande.commande.date|date('d/m/Y') }}

Client : {% if commande.commande.commande.panier.adresseFacturation.civilite is defined %}{{ commande.commande.commande.panier.adresseFacturation.civilite }}{% endif %} {% if commande.commande.commande.panier.adresseFacturation.nom is defined %}{{ commande.commande.commande.panier.adresseFacturation.nom }} {% endif %} {% if commande.commande.commande.panier.adresseFacturation.prenom is defined %}{{ commande.commande.commande.panier.adresseFacturation.prenom }}{% endif %}

Montant total ttc : {{ commande.commande.montant|toeuro }}

{% if commande.commande.paymentOnline > 0 %}

Montant encaissé ttc : {{ (commande.commande.paymentOnline-(commande.commande.eurosCommission+((commande.commande.paymentOnline/100)*commande.commande.percentCommission)))|toeuro }}

{% endif %} {% if commande.commande.paymentOffline > 0 %}

Paiement sur place / à livraison ttc : {{commande.commande.paymentOffline|toeuro}}

{% endif %}
{% if commande.validation > 0 %}

{{ commande.validation }} commande(s) à valider

{% endif %} {% if commande.preparation > 0 %}

{{ commande.preparation }} colis à préparer

{% endif %} {% if commande.expedition > 0 %}

{{ commande.expedition }} colis expédiés

{% endif %} {% if commande.rendezvous > 0 %}

{{ commande.rendezvous }} RDV à confirmer

{% endif %} {% if commande.rendezvousok > 0 %}

{{ commande.rendezvousok }} RDV confirmé(s)

{% endif %}
{% endif %} {% endfor %}
{% else %}

Vous n'avez aucune commande en cours actuellement.

{% endif %}
{% endblock %}