{% if return is defined %}
{% else %} {{ return.dealer.name }}
{% endif %} Tienda: {{ return.shop }}
Fecha de creación: {{ return.createdAt | date('d-m-Y \\a \\l\\a\\s H:i:s') }}
{% if return.type is not null %} {{ return.type.description }} {% else %} Por definir {% endif %} {{ return.status.description }}
{% endif %}
COD-Devolución: {{ return.getAlias }}
{% if roleRight == true %} {{ return.dealer.name }}{% else %} {{ return.dealer.name }}
{% endif %} Tienda: {{ return.shop }}
Fecha de creación: {{ return.createdAt | date('d-m-Y \\a \\l\\a\\s H:i:s') }}
{% if return.type is not null %} {{ return.type.description }} {% else %} Por definir {% endif %} {{ return.status.description }}
{% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PENDING') %}
{% if return.type.id != constant('CoreBundle\\Entity\\TypeReturn::ANSWER_PENDING') %}
{% if return.type.id == constant('CoreBundle\\Entity\\TypeReturn::REPAIR') %}
{% if return.incidence is null %}
{% endif %}
{% elseif return.type.id == constant('CoreBundle\\Entity\\TypeReturn::BILL_PAYMENT') %}
{% endif %}
{% endif %}
{% endif %}
{% if (return.returnItem | length ) > 0 or (return.returnItemLite | length ) > 0 %}
{% endif %}
{% if return.status.id != constant('CoreBundle\\Entity\\TypeReturnStatus::CLOSED') %}
{% endif %}
{% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') %}
{% if roleRight or isShopManager %}
{% endif %}
{% endif %}
{% if return.incidence is not null %}
{% endif %}
{% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') or return.returnItem | length == 0 %}
{% endif %}
{% if return is defined %}
{% if return.status.id != constant('CoreBundle\\Entity\\TypeReturnStatus::CLOSED') %}
{% endif %}
{% endif %}
{{ render(controller('CoreBundle:Article:_scan')) }}
{% form_theme form 'bootstrap_3_layout.html.twig' %}
{{ form_start(form) }}
{{ form_errors(form) }}
{{ form_end(form) }}
{{ form_row(form.dealer) }}
{{ form_row(form.type) }}
{{ form_row(form.reason) }}
{{ form_row(form.methodOfPayment) }}
{{ form_row(form.description ) }}
{% include '@Core/Return/return_detail_summary_articles_tab.html.twig' %}