{% extends '@EasyAdmin/default/show.html.twig' %} {% block head_stylesheets %} {{parent()}} {% endblock %} {% block actions_tabs %} {% endblock actions_tabs %} {% block title_entity %} {{parent()}} #{{entity.numberReturn}} {{entity.client.username}} {% endblock %} {% block content %}

{% trans %}Client data{% endtrans %}

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

{{entity.client.companyName}}
CIF

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

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

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

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

{{entity.client.email}}


{% if entity.additionaNote %} {% endif %}

{{ 'product list'|trans }}

{% 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 %} {% for product in entity.arrayProducts %} {% set cantRecived = 0 %} {% if product.quantity_received is defined %} {% set cantRecived = product.quantity_received %} {% endif %} {% endfor %}
# {{ 'product_ea.form.sku'|trans }} {{ 'product name'|trans|capitalize }} {{ 'orderReturns.stock'|trans|capitalize }} {{ 'price'|trans|capitalize }} {{ 'orderReturns.quantity'|trans|capitalize }} {{ 'amount'|trans|capitalize }} {% if is_granted('ROLE_CLIENT_USER') %} {{'delivered'|trans}} {% else %} {{ 'orderReturns.received'|trans|capitalize }} {% endif %}
{% if product.image is defined %} {% if product.image != '' %}
{% else %} {% endif %} {% else %} {% endif %}
{{product.sku}}

{{product.name}}

{{product.stock}} {% set product_price = product.price|round(2, 'floor') %} {{ priceSymbol == '€' ? product_price ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ product_price : product_price }} {{product.quantity}} {% set product_amount = product.price * product.quantity|round(2, 'floor') %} {{ priceSymbol == '€' ? product_amount ~ ' ' ~ priceSymbol : priceSymbol == '$' ? priceSymbol ~ ' ' ~ product_amount : product_amount }} {% if is_granted('ROLE_CLIENT_USER') %} {{cantRecived}} {% else %} {% if cantRecived != product.quantity %} {% else %} {{cantRecived}} {% endif %} {% endif %} {# orderClientActivity.received pending #} {# {% if is_granted('ROLE_CLIENT_USER') %} {% if product.received is defined and product.received %} {{'delivered'|trans}} {% else %} {{'pending'|trans}} {% endif %} {% else %} #} {% if product.received is defined and product.received %} {% else %} {# #} {% endif %} {# {% endif %} #}
{#
#}
{% if is_granted('ROLE_PROVIDER') or is_granted('ROLE_SUB_PROVIDER') %} {{'orderReturns.receive'|trans|raw}} {% endif %} {% include "/admin/order_returns/create/createOrder_css.html.twig" %} {% endblock %} {% block body_javascript %} {{parent()}} {% endblock %}