{{ 'order'|trans() }}

{#

#{{order.numberOrderProvider}}

#}

{{order.client}}

{{ 'order_cliente.pdf_detail.date'|trans()|capitalize }}: {{order.createdAt|date('d/m/Y')}}

{% if order.buyer != null %}

{{ 'order_cliente.pdf_detail.billingAddress'|trans() }}: {{order.buyer.billingAddress}}

{{ 'client_ea.form.cif'|trans() }}: {{order.buyer.cif}}

{% endif %}

Nota adicional: {{order.additionalNote}}

{% set priceSymbol = '€' %} {% for product in order.productArray %} {% endfor %}
{{ 'Product'|trans }} {{ 'product_ea.list.productCategory'|trans }} {{ 'product_ea.list.quantity'|trans }} {{ 'product_ea.list.price'|trans|capitalize }} {{ 'catalogs_ea.list.discount'|trans|capitalize }} (%) {{ 'salesClient.subtotal'|trans|capitalize }}
{% if product.image is defined and product.image != '' %} {% else %} {% endif %} {# #}
{{product['name']}}

{{product['categoryName']}}

{{product['quantity']}} {{product['price']}} {{product['discount']}} {{product['amount']}} {{priceSymbol}}
{{'order_cliente_ea.form.totalAmount'|trans()}} {% set totalAmount = 0 %} {% for product in order.productArray %} {% set totalAmount = totalAmount + (product['amount']) %} {% endfor %} {{ priceSymbol == '€' ? totalAmount|round(2, 'common') ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ totalAmount|round(2, 'common') : totalAmount|round(2, 'common') }}