{% extends 'app/base.html.twig' %} {% block title %}Commandes fournisseurs {% endblock %} {% block body %}

Commandes fournisseurs

Assistant Nouvelle commande
{# ── Stats ─────────────────────────────────────────────────────────────── #}
Brouillons
{{ nbBrouillons }}
Envoyées
{{ nbEnvoyees }}
Reçues
{{ nbRecues }}
{# ── Filtres ───────────────────────────────────────────────────────────── #}
{# Filtre mois/année #} {# Filtre statut #} Réinitialiser
{# ── Tableau ───────────────────────────────────────────────────────────── #}
{% if commandes is empty %}
Aucune commande pour cette période
{% else %}
{% for c in commandes %} {% endfor %}
# Fournisseur Date commande Livraison souhaitée Statut
{{ c.id }} {{ c.fournisseur }} {{ c.date_commande ? c.date_commande|date('d/m/Y') : '—' }} {{ c.date_livraison_souhaitee ? c.date_livraison_souhaitee|date('d/m/Y') : '—' }} {% set badge = {brouillon: 'bg-secondary', envoyee: 'bg-warning text-dark', recue: 'bg-success', annulee: 'bg-danger'} %} {{ c.statut|capitalize }} {## {% if c.statut == 'brouillon' %}
{% endif %}##}
{% endif %}
{% endblock body %}