{# Loader #}
{# Header #}
Nom
Stock
RAL
Client
{% for year in ['N', 'N-1', 'N-2'] %}
{{ year }}
{% endfor %}
Action
{# Products #} {% if products|length < 1 %}

Aucun produit

{% endif %} {% for product in products %} {% set stock = product.stock is null ? 'Non géré' : product.stock %}
{{ strip_tags(product.name)|nl2br }} {% if product.saleUnit is not null %}{{ product.saleUnit }} exemplaires{% endif %}
{{ stock }}
{% if product.remainingToDeliver is defined %} {% if product.remainingToDeliver > 0 %} {{ product.remainingToDeliver }} {% else %} {{ product.remainingToDeliver }} {% endif %} {% else %} 0 {% endif %}
{{ product.shop }}
{% for quantitySold in get_quantity_sold_per_year(product) %}
{{ quantitySold.quantity }}
{% endfor %}
{% endfor %}

{% include "layouts/_pagination.html.twig" with { 'currentPage': currentPage, } %}