{% set active ="" %}
{% extends 'base.html.twig' %}
{% block title %}Commande{% endblock %}
{% block body %}
| 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
| Article |
Quantité |
P.U |
Total |
Commande |
Commande FRN |
Client |
|
{% for item in commande.contenu %}
| {{ item }} |
{{ item.quantite }} |
{{ item.article.prix }} € |
{{ item.TotalTTC }} € |
{{item.commande}} |
{{ item.commandeFournisseur}} |
{{item.client}} |
Voir
|
{% endfor %}
{% endif %}
{% if commande.details is not empty %}
Articles Fournisseurs
| Article |
Quantité |
P.U |
Total |
Commande |
Commande FRN |
Client |
|
{% for item in commande.details %}
| {{ item }} |
{{ item.quantite }} |
{{ item.article.prix }} € |
{{ item.TotalTTC }} € |
{{item.commande}} |
{{ item.commandeFournisseur}} |
{{item.client}} |
Voir
|
{% endfor %}
{% 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 %}