{% set order_shop = entity.instance %} {% set main_order_shop = entity.instance.mainOrderShop %} {% if main_order_shop is defined and main_order_shop is not null %} {% if order_shop.getSection() != main_order_shop.getSection() or section_container.solver.isSectionWithdrawal(order_shop.getSection()) %} Complément {{ main_order_shop.getSection() }} {% else %} Complément {% endif %} {% else %} Principale {% set complementary_order_shops = entity.instance.complementaryOrderShops %} {% if complementary_order_shops and complementary_order_shops|length > 0 %} {{ complementary_order_shops|length}} complément{% if complementary_order_shops|length > 1 %}s{% endif %} {% endif %} {% endif %} {# {% set value = entity.instance.complementaryOrderShops|length %} {% if value > 0 %} {{ value|length }} compléments {% else %} non {% endif %} #}