Bons de livraison
{# Stats #}
{{ bl_count }}
BL ce mois
{{ alerte_count }}
alertes en attente
{# CTAs #}
{# Alert banner #}
{% if alerte_count > 0 %}
{{ alerte_count }} alerte{{ alerte_count > 1 ? 's' : '' }} non traitée{{ alerte_count > 1 ? 's' : '' }}
{% endif %}
{# Recent BLs table #}
{% if recent_bls is empty %}
Aucun bon de livraison récent.
{% else %}
| N° |
Fournisseur |
Date |
Lignes |
Alertes |
Statut |
{% for row in recent_bls %}
{% set bl = row.bl %}
| {{ bl.numeroBl ?? '—' }} |
{{ bl.fournisseur ? bl.fournisseur.nom : '—' }} |
{{ bl.dateLivraison|date('d/m/Y') }} |
{{ row.ligneCount }} |
{% if row.alertCount > 0 %}
{{ row.alertCount }}
{% else %}
0
{% endif %}
|
{{ bl.statut.label }}
|
{% endfor %}
{% endif %}
{% endblock %}