{{ 'order'|trans() }}

#{{order.numberOrderProvider}}

{{ 'Provider'|trans()|capitalize }}: {% if order.providerArray['companyName'] is defined %} {{order.providerArray['companyName']}} {% else %} {{order.provider}} {% endif %}

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

{{ 'order_cliente.pdf_detail.billingAddress'|trans() }}: {{order.address.streetAddress1}} {{order.address.number}}, {{order.address.zipCode}}, {{order.address.city}}

{{ 'order_cliente.pdf_detail.personInCharge'|trans() }}: {{order.address.inChargePerson}}

{{ 'client_ea.form.cif'|trans() }}: {% if order.address.cif != null %} {{order.address.cif}} {% else %} {{order.client.cif}} {% endif %}

Nota adicional: {{order.additionalNote}}

{% if order.provider.typeSector == 1 %} {% endif %} {% set priceSymbol = order.provider.country.moneySymbol %} {% for product in order.productsArray %} {% if order.provider.typeSector == 1 %} {% endif %} {% endfor %}
{{ order.provider.typeSector == 1 ? 'product_ea.form.sku'|trans() : 'product_editorial.form.isbn'|trans() }} {{ 'product_ea.form.name'|trans()|capitalize }} {% if order.provider.typeSector == 1 %} {{ 'product_ea.form.unit'|trans()|capitalize }} {% else %} {{ 'product_editorial.list.autor'|trans()|capitalize }} {% endif %} {{ 'product_ea.list.presentation'|trans() }}{{ 'price'|trans()|capitalize }} {{ 'quantity'|trans()|capitalize }} {{ 'amount'|trans()|capitalize }}
{% if product['sku'] is defined %} {{product['sku']}} {% endif %} {% if product['name'] is defined %} {{product['name']}} {% endif %} {% if order.provider.typeSector == 1 %} {% if product['unit'] is defined %} {{product['unit']}} {% endif %} {% else %} {% if product['container_type'] is defined %} {{product['container_type']}} {% endif %} {% endif %} {% if product['presentation'] is defined %} {{product['presentation']}} {% endif %} {% if product['price'] is defined %} {{product['price']|round(2, 'common')}} {{priceSymbol}} {% endif %} {% if product['quantity'] is defined %} {{product['quantity']}} {% else %} 0 {% endif %} {% if product['quantity'] is defined %} {{product['price'] * product['quantity']}} {{priceSymbol}} {% else %} 0 {% endif %}
{{'order_cliente_ea.form.totalAmount'|trans()}} {% set totalAmount = 0 %} {% for product in order.productsArray %} {% if product['quantity'] is defined %} {% set totalAmount = totalAmount + (product['price'] * product['quantity']) %} {% endif %} {% endfor %} {{ priceSymbol == '€' ? totalAmount|round(2, 'common') ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ totalAmount|round(2, 'common') : totalAmount|round(2, 'common') }}