{% extends 'admin/hub/layout.html.twig' %} {% set hub_title = 'Demande d\'avoir' %} {% set hub_breadcrumbs = [ { label: 'Bons de livraison', url: path('app_bl_hub') }, { label: 'Livraisons a valider', url: path('app_bl_pending') }, { label: 'Demande d\'avoir' } ] %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block hub_content %}

Demande d'avoir

BL {{ bonLivraison.numeroBl ?? '#' ~ bonLivraison.id }} — {{ bonLivraison.fournisseur ? bonLivraison.fournisseur.nom : '' }} — {{ bonLivraison.dateLivraison ? bonLivraison.dateLivraison|date('d/m/Y') : '' }}

{% for message in app.flashes('error') %}
{{ message }}
{% endfor %}
{# Info BL #}

Informations

Fournisseur {{ bonLivraison.fournisseur ? bonLivraison.fournisseur.nom : '—' }}
Etablissement {{ bonLivraison.etablissement.nom }}
BL d'origine {{ bonLivraison.numeroBl ?? '#' ~ bonLivraison.id }}
Date livraison {{ bonLivraison.dateLivraison ? bonLivraison.dateLivraison|date('d/m/Y') : '—' }}
{# Motif #}

Motif de la demande

{# Lignes en alerte #}

Lignes en ecart ({{ lignesEnAlerte|length }})

{% if lignesEnAlerte|length > 0 %}
{% for data in lignesEnAlerte %} {% set isChecked = preselectedIds is null or data.ligne.id in preselectedIds %} {% endfor %}
Designation Qte PU BL PU Mercuriale Ecart unitaire Montant
{{ data.ligne.designationBl }} {{ data.ligne.quantiteLivree|number_format(2, ',', ' ') }} {% if data.ligne.unite %} {{ data.ligne.unite }} {% endif %} {{ data.ligne.prixUnitaire|number_format(4, ',', ' ') }} € {% if data.alerte.valeurAttendue %} {{ data.alerte.valeurAttendue|number_format(4, ',', ' ') }} € {% else %} {% endif %} {{ data.ecartUnitaire|number_format(4, ',', ' ') }} € {{ data.montantLigne|number_format(2, ',', ' ') }} €
Total HT demande : 0,00 €
{% else %}

Aucune ligne en ecart detectee sur ce BL.

{% endif %}
{# Commentaire #}

Commentaire

{# Actions #}
Retour {% if lignesEnAlerte|length > 0 %} {% endif %}
{% endblock %}