{% if is_granted('ROLE_SELLER') %} {{'Message'|trans}} {% if is_granted('ROLE_PROVIDER') == false %}


{% endif %} {% endif %} {% if is_granted('ROLE_OPERATION') %}
{{'InvoiceOrderClient'|trans}}
{% endif %}
{% if is_granted('ROLE_OPERATION') %}

{% endif %}

{% if is_granted('ROLE_CLIENT_USER') %} {{'My data'|trans(_trans_parameters)}} {% else %} {{'Client data'|trans(_trans_parameters)}} {% endif %}

{{'provider_ea.show.companyName'|trans(_trans_parameters)}}

{{entity.client.companyName}}
CIF

{{entity.client.cif}}
{{'provider_ea.show.billingAddress'|trans(_trans_parameters)}}

{{entity.client.billingAddress}}
{{'provider_ea.show.phone'|trans(_trans_parameters)}}

{{entity.client.phone}}
{{'provider_ea.show.mobile'|trans(_trans_parameters)}}

{{entity.client.mobile}}
{{'provider_ea.show.email'|trans(_trans_parameters)}}

{{entity.client.email}}
{{'provider_ea.show.openHours'|trans(_trans_parameters)}}

{% for op in entity.client.openHours %} {{ include('admin/open_hours.html.twig') }} {% endfor %}
{{'order_cliente_ea.show.address'|trans(_trans_parameters)}}

{% if entity.address %} {% if entity.clientArray['address_delivery_streetAddress1'] is defined and entity.clientArray['address_delivery_streetAddress1'] %} {{'Street address1'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_streetAddress1']}} {% if entity.clientArray['address_delivery_number'] is defined and entity.clientArray['address_delivery_number']%} {{entity.clientArray['address_delivery_number']}} {% endif %}
{% endif %} {% if entity.clientArray['address_delivery_streetAddress2'] is defined and entity.clientArray['address_delivery_streetAddress2'] %} {{'Street address2'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_streetAddress2']}}
{% endif %} {% if entity.clientArray['address_delivery_city'] is defined and entity.clientArray['address_delivery_city'] %} {{'City'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_city']}}
{% endif %} {% if entity.clientArray['address_delivery_state'] is defined and entity.clientArray['address_delivery_state'] %} {{'State'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_state']}}
{% endif %} {% if entity.clientArray['address_delivery_email'] is defined and entity.clientArray['address_delivery_email'] %} {{'Email'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_email']}}
{% endif %} {% if entity.clientArray['address_delivery_inChargePerson'] is defined and entity.clientArray['address_delivery_inChargePerson'] %} {{'In Charge Person'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_inChargePerson']}}
{% endif %} {% if entity.clientArray['address_delivery_phone'] is defined and entity.clientArray['address_delivery_phone'] %} {{'Phone'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_phone']}}
{% endif %} {% endif %}
{#
{{'provider_ea.show.companyName'|trans(_trans_parameters)}}

{{entity.client.companyName}}
CIF

{{entity.client.cif}}
{{'provider_ea.show.billingAddress'|trans(_trans_parameters)}}

{{entity.client.billingAddress}}
#} {#
{{'provider_ea.show.phone'|trans(_trans_parameters)}}

{{entity.client.phone}}
{{'provider_ea.show.mobile'|trans(_trans_parameters)}}

{{entity.client.mobile}}
{{'provider_ea.show.email'|trans(_trans_parameters)}}

{{entity.client.email}}
#} {#
{{'provider_ea.show.openHours'|trans(_trans_parameters)}}

{% for op in entity.client.openHours %} {{ include('admin/open_hours.html.twig') }} {% endfor %}
{{'order_cliente_ea.show.address'|trans(_trans_parameters)}}

{% if entity.address %} {% if entity.clientArray['address_delivery_streetAddress1'] is defined and entity.clientArray['address_delivery_streetAddress1'] %} {{'Street address1'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_streetAddress1']}} {% if entity.clientArray['address_delivery_number'] is defined and entity.clientArray['address_delivery_number']%} {{entity.clientArray['address_delivery_number']}} {% endif %}
{% endif %} {% if entity.clientArray['address_delivery_streetAddress2'] is defined and entity.clientArray['address_delivery_streetAddress2'] %} {{'Street address2'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_streetAddress2']}}
{% endif %} {% if entity.clientArray['address_delivery_city'] is defined and entity.clientArray['address_delivery_city'] %} {{'City'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_city']}}
{% endif %} {% if entity.clientArray['address_delivery_state'] is defined and entity.clientArray['address_delivery_state'] %} {{'State'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_state']}}
{% endif %} {% if entity.clientArray['address_delivery_email'] is defined and entity.clientArray['address_delivery_email'] %} {{'Email'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_email']}}
{% endif %} {% if entity.clientArray['address_delivery_inChargePerson'] is defined and entity.clientArray['address_delivery_inChargePerson'] %} {{'In Charge Person'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_inChargePerson']}}
{% endif %} {% if entity.clientArray['address_delivery_phone'] is defined and entity.clientArray['address_delivery_phone'] %} {{'Phone'|trans(_trans_parameters)}}: {{entity.clientArray['address_delivery_phone']}}
{% endif %} {% endif %}
#}



{% if not entity.messageErp is null %}
{% endif %}

{{'Order data'|trans(_trans_parameters)}}

{% if app.user.roles[0] == 'ROLE_PROVIDER' or app.user.roles[0] == 'ROLE_SELLER' %} {% set providerRabbits = app.user.roles[0] == 'ROLE_PROVIDER' ? app.user.providerRabbits : app.user.provider.providerRabbits %} {% if providerRabbits|length != 0 %} {% if not is_granted('ROLE_SUPERADMIN') and ((is_granted('ROLE_PROVIDER') or is_granted('ROLE_SELLER') or is_granted('ROLE_OPERATION') )) %} {% if entity.integration %} {{'Integration ERP'|trans}} {% else %}
{{'not Integration ERP'|trans}}
Loading...
{% endif %} {% endif %} {% endif %} {% endif %}
{# {% if not is_granted('ROLE_SUPERADMIN') and ((is_granted('ROLE_PROVIDER') or is_granted('ROLE_SELLER') or is_granted('ROLE_OPERATION') )) %} #} {% if not is_granted('ROLE_SUPERADMIN') and ((is_granted('ROLE_PROVIDER') or is_granted('ROLE_SELLER') )) %} {% if entity.statePayment < 2 %} {% endif %} {% endif %}
{% if entity.additionalNote %} {% endif %} {% if entity.additionalNoteTow %} {% endif %}

{{ 'product list'|trans }}

{% if app.user.typeSector == 1 %} {% endif %} {% set priceSymbol = '€' %} {% if is_granted('ROLE_ADMIN') %} {% elseif is_granted('ROLE_PROVIDER') %} {% if app.user.country %} {% set priceSymbol = app.user.country.moneySymbol %} {% endif %} {% elseif is_granted('ROLE_CLIENT_USER') %} {% if entity.provider.country is defined %} {% set priceSymbol = entity.provider.country.moneySymbol %} {% else %} {% set priceSymbol = entity.externalProvider.moneySymbol %} {% endif %} {% else %} {% if app.user.provider.country %} {% set priceSymbol = app.user.provider.country.moneySymbol %} {% endif %} {% endif %} {% set order_total_unit = 0 %} {% for product in entity.productsArray %} {% if app.user.typeSector == 1 %} {% endif %} {% endfor %} {% if app.user.typeSector == 1 %} {% endif %}
# {{ 'product_ea.form.sku'|trans }} {{ 'product name'|trans|capitalize }}{{ 'product_ea.list.presentation'|trans|capitalize }}{{ 'price'|trans|capitalize }} {{ 'quantity'|trans|capitalize }} {{ 'amount'|trans|capitalize }}
{% if product.image_url is defined %}
{% else %} {% endif %}
{{product.sku}} {{product.name}} {% if product.presentationArray is defined %} {% if product.presentationArray.namePres is defined %} {{product.presentationArray.namePres}} {% else %} {% if product.presentation is defined %} {{product.presentation}} {% else %} {% if product.unit is defined %} {{product.container_type}} {% endif %} {% endif %} {% endif %} {% else %} {% if product.presentation is defined %} {{product.presentation}} {% else %} {% if product.unit is defined %} {{product.container_type}} {% endif %} {% endif %} {% endif %} {# {% if product.unit is defined %} {{product.unit}} {% endif %} #} {% set product_price = product.price|round(2, 'floor') %} {{ priceSymbol == '€' ? product_price ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ product_price : product_price }} {% if not product['externalProduct'] %} {% if product.quantity %} {% if product.quantity > 0 %} {% if product.unit is defined and product.unit != '' %} {{product.unit}} {% set order_total_unit = order_total_unit + product.unit %} {% else %} {{product.quantity}} {{'Unidades'|trans}} {% set order_total_unit = order_total_unit + product.quantity %} {% endif %} {% elseif product.quantity == 1 %} {% if product.unit is defined and product.unit != '' %} {{product.unit}} {% set order_total_unit = order_total_unit + product.unit %} {% else %} {{product.quantity}} {{'Unidad'|trans}} {% set order_total_unit = order_total_unit + product.quantity %} {% endif %} {% endif %} {% endif %} {% else %} {% if product['quantity_external_provider'] is defined %} {% set order_total_unit = order_total_unit + product['quantity_external_provider'] %} {{product['quantity_external_provider']}} {% else %} 0 {% endif %} {% endif %} {% set product_amount = product.amount|round(2, 'floor') %} {{ priceSymbol == '€' ? product_amount ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ product_amount : product_amount }}
{{'order_cliente_ea.form.totalAmount'|trans(_trans_parameters)}} {{ order_total_unit }} {{'Unidades'|trans}} {% set order_total_amount = entity.totalAmount|round(2, 'floor') %} {{ priceSymbol == '€' ? order_total_amount ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ order_total_amount : order_total_amount }}


{{'invoices'|trans(_trans_parameters)}}


{% for invoiceOrderClient in entity.invoiceOrderClients %} {% for invoiceFile in invoiceOrderClient.invoiceFiles %} {{'Download' |trans(_trans_parameters) }} {% endfor %} {% endfor %}