{% block stylesheets %} {% endblock %}
{% set foo = 1 %} {% if startLabelFromWhereToPrint > 0 %} {% for i in 1..startLabelFromWhereToPrint %} {% if foo == 1 %}
{% endif %}
{% if foo == numberOfLabelsPerPage %}
{% set foo = 1 %} {% else %} {% set foo = foo + 1 %} {% endif %} {% endfor %} {% endif %} {% for article in articles %} {% for i in 1..numberOfLabelsToPrint %} {% if foo == 1 %}
{% endif %}
{% if articlesCheckDiscountArray[article.id] is not defined %}
{% if article.getAbsolutePathBarcode() %}
{{ article.alias }}
{% endif %}
{% if article.ref | length > 17 %} {{ article.ref | truncate(14, false, '...') }} {% else %} {{ article.ref }} {% endif %}
{{ articlesPriceArray[article.id]|replace({'€': ""}) }}€
{{ article.articleModel.description | slice(0, 23) }}
{{ article.articleColor.description | slice(0, 23) }}
{% else %}
{% if article.getAbsolutePathBarcode() %}
{{ article.alias }}
{% endif %}
{% if article.ref | length > 17 %} {{ article.ref | truncate(14, false, '...') }} {% else %} {{ article.ref }} {% endif %}
AHORA: {{ articlesCheckDiscountArray[article.id]|replace({'€': ""}) }}€
ANTES: {{ articlesPriceArray[article.id] | number_format(2, ',', '.')}}€
{{ article.brand.name | slice(0, 23) }}
{% endif %}
{% if foo == numberOfLabelsPerPage %}
{% set foo = 1 %} {% else %} {% set foo = foo + 1 %} {% endif %} {% endfor %} {% endfor %}
{% include 'CoreBundle:Default:components.html.twig' %} {% include 'CoreBundle:Default:style-pdf.html.twig' %}