{% extends 'base_douchette.html.twig' %} {% import 'macros/macro.html.twig' as macro %} {% block title %} {{ parent() }} Recherche un article {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{{ form_start(form, {'attr' : {'id' : 'articleForm', 'class' : 'spinner_form form-inline'}}) }} Menu {{ form_widget(form.codebar) }} {{ form_end(form) }}
{% if articles %}

{{ articles|length }} article{% if articles|length > 1 %}s{% endif %} trouvé{% if articles|length > 1 %}s{% endif %}

{% for article in articles %}
{% if article.stock > 0 %} {% if article.stockDocumentReservation %} {% endif %} {% endif %}
Famille : {{ article.familyName }}
Sous-Famille : {{ article.subFamilyName }}
Codebarre : {{ article.codebar }}
Stock : {% if article.manageStock %} {{ article.stock }} article{% if article.stock > 1 %}s{% endif %} {% else %} Article non géré en stock {% endif %}
Stock min : {{ article.stockMinimum }} article{% if article.stock > 1 %}s{% endif %}
{% if article.trackingMode == 1 %}Numéro{% if article.stock > 1 %}s{% endif %} de série : {% elseif article.trackingMode == 2 %}Numéro{% if article.stock > 1 %}s{% endif %} de lot : {% endif %} {% if article.trackingMode == 1 %}{{ article.trackingMumbers }} {% elseif article.trackingMode == 2 %}{{ article.trackingMumbers }} {% endif %}
Reservation en cours : {{ article.stockDocumentReservation }}
Poids : {% if article.weight != 0 %}{{ article.weight|replace({'.': ','}) }} Kg{% endif %}
Largeur : {% if article.width != 0 %}{{ article.width }} millimètres{% endif %}
Longeur : {% if article.length != 0 %}{{ article.length }} millimètres{% endif %}
Hauteur : {% if article.height != 0 %}{{ article.height }} millimètres{% endif %}
Nombre d'articles/colis : {{ article.numberOfItemInPackage }}
{# on affiche le bouton de creer bon entrée uniquement pour les articles gérés en stock #} {% if article.manageStock == 1 %} {% if searchType == 'bon-entree'%} CRÉER BON ENTRÉE {% elseif searchType == 'bon-sortie'%} CRÉER BON SORTIE {% elseif searchType == 'stock'%} CRÉER BON ENTRÉE {% if article.stock > 0 %} CRÉER BON SORTIE {% endif %} {% endif %} {% endif %} METTRE A JOUR POIDS DIMENSIONS
{% endfor %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}