{% extends 'base.html.twig' %} {% set title = 'Commande - ' ~ title %} {% block body %}

{{ title }}

Point de retrait : {{ commande.store_name }}
Créneau : {{ (commande.day~' '~commande.hour)|date('d/m/Y') }} entre {{ (commande.day~' '~commande.hour)|date('H:i') }} et {{ (commande.day~' '~commande.hour)|date_modify('+30 min')|date('H:i') }}
{{ commande.lastname }} {{ commande.firstname }}
{{ commande.address1 }} {{ commande.address2 }} {{ commande.postcode }} {{ commande.city }}
{{ userPhones|join(' - ') }}
{{ commande.email }}
{% if commande.note %}
Note :
{{ commande.note }} {% endif %} {% if commande.messages %}

Messages :
{% for message in commande.messages|split('|') %}   - {{ message }}
{% endfor%} {% endif %} {% if commande.codes %}
Codes :
{% for code in commande.codes|split('|') %}   {{ code }}
{% endfor%} {% endif %}
{% set cat = 0 %} {% set subcat = 0 %} {% for detail in details %} {% if cat != detail.category_id or subcat != detail.subcategory_id %} {% set cat = detail.category_id %} {% set subcat = detail.subcategory_id %} {% endif %} {% endfor %}
Référence Désignation Préparation Nombre de lots Poids total KG
{{ detail.category_name }} - {{ detail.subcategory_name }}
{{ detail.product_reference }} {{ detail.product_name }} {{ detail.attribute_name }} {{ detail.quantity }} {{ detail.total_weight != 0 ? detail.total_weight *1 }}
{% if commande.current_state in preparer %} {% elseif commande.current_state in preparee %} {% endif %}
{% endblock %}