{% 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 %}{{ 'orderReturns.note_to_customer_troa'|trans }}
{% else %}{{ 'orderReturns.note_to_customer'|trans }}
{% endif %}{{entity.additionaNote|raw}}
# | {{ '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 != '' %}
![]() ![]() |
{{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 %} #} |