{% set active ="" %} {% extends 'base.html.twig' %} {% block title %}Commande{% endblock %} {% block body %}

Commande

Imprimer
Client {{ commande.client }}
Numero {{ commande.numero }}
Montant {{ commande.montant }} €
Date de la commande {{ commande.dateOrder ? commande.dateOrder|date('Y-m-d H:i:s') : '' }}
Status {{ commande.status }}
{% if commande.contenu is not empty %}

Articles

{% for item in commande.contenu %} {% endfor %}
Article Quantité P.U Total Commande Commande FRN Client
{{ item }} {{ item.quantite }} {{ item.article.prix }} € {{ item.TotalTTC }} € {{item.commande}} {{ item.commandeFournisseur}} {{item.client}} Voir
{% endif %} {% if commande.details is not empty %}

Articles Fournisseurs

{% for item in commande.details %} {% endfor %}
Article Quantité P.U Total Commande Commande FRN Client
{{ item }} {{ item.quantite }} {{ item.article.prix }} € {{ item.TotalTTC }} € {{item.commande}} {{ item.commandeFournisseur}} {{item.client}} Voir
{% endif %}
{% include "CRUD/etapes/index.html.twig" with { etapes : commande.etapes} %} {% if app.user is not null and 'ROLE_DEV' in app.user.roles %} back to list edit {{ include('commande_crud/_delete_form.html.twig') }} {% endif %}
{% endblock %}