{% extends '@Core/base.html.twig' %} {% block sectionTitle %}Devolución {% endblock %} {% block sectionActions %} {% endblock %} {% block breadcrumbLinks %}
  • Devoluciones
  • {% if return is not defined %}
  • Nuevo
  • {% else %}
  • Editar
  • {% endif %} {% endblock %} {% block content %} {% include "@Core/Return/_return_dialog_Massive_Scanbar.html.twig" %}
    {% if return is defined %}

    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 %}
    {% endif %}
    {% if return is defined %} {% if return.status.id != constant('CoreBundle\\Entity\\TypeReturnStatus::CLOSED') %}
    {{ render(controller('CoreBundle:Article:_scan')) }}
    {% endif %}
    {% if return is defined %} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PENDING') %} {% endif %} {% if typeStockAliasInUse == 1 %} {% endif %} {% if typeStockAliasInUse == 2 %} {% endif %} {% if typeStockAliasInUse == 3 %} {% endif %} {% if isLite == false %} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') %} {% endif %} {% endif %} {% if roleRight == true %} {% endif %} {% for obj in return.returnItem %} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PENDING') %} {% if obj.stock.typeStatusStock.id == constant('CoreBundle\\Entity\\TypeStatusStock::ID_STATUS_IN_REPAIR') and return.type.id == constant('CoreBundle\\Entity\\TypeReturn::REPAIR') %} {% elseif obj.stock.typeStatusStock.id == constant('CoreBundle\\Entity\\TypeStatusStock::ID_STATUS_ON_RETURN') and return.type.id == constant('CoreBundle\\Entity\\TypeReturn::BILL_PAYMENT')%} {% else %} {% endif %} {% endif %} {% if roleRight == true or isShopManager %} {% else %} {% endif %} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') %} {% endif %} {% if roleRight == true %} {% endif %} {% endfor %} {% for obj in return.returnItemLite %} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PENDING') %} {% if return.type.id == constant('CoreBundle\\Entity\\TypeReturn::REPAIR') %} {% elseif return.type.id == constant('CoreBundle\\Entity\\TypeReturn::BILL_PAYMENT')%} {% else %} {% endif %} {% endif %} {% if typeStockAliasInUse == 1 %} {% if roleRight == true or isShopManager %} {% else %} {% endif %} {% endif %} {% if typeStockAliasInUse == 2 %} {% if roleRight == true or isShopManager %} {% else %} {% endif %} {% endif %} {% if typeStockAliasInUse == 3 %} {% if roleRight == true or isShopManager %} {% else %} {% endif %} {% endif %} {% if roleRight == true %} {% endif %} {% endfor %}
    COD-StockCOD-TallaEANArtículo Modelo Color Estado en devoluciónEstado del stockTallaPrecio costeDescripcion individual de la devolución
    {{ obj.stock.alias }}{{ obj.stock.alias }}{{ obj.stock.article.alias }} {{ obj.stock.article.articleModel }} {{ obj.stock.article.articleColor }} {{ obj.status.description }}{{ obj.stock.getTypeSize.description }}{{ obj.stock.costPrice }}{{ obj.description }} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') %} {% if isLite %} {% else %} {% endif %} {% endif %}
    {{ obj.stock.alias }}{{ obj.stock.alias }}{{ arrayCodeStockLite[obj.stock.alias] }}{{ arrayCodeStockLite[obj.stock.alias] }}{{ arrayCodeStockLite[obj.stock.alias] }}{{ arrayCodeStockLite[obj.stock.alias] }}{{ obj.stock.article.alias }} {{ obj.stock.article.articleModel }} {{ obj.stock.article.articleColor }} {{ obj.status.description }} {{ obj.stock.getTypeSize.description }}{{ obj.stock.costPrice }}{{ obj.description }} {% if return.status.id == constant('CoreBundle\\Entity\\TypeReturnStatus::PROFORMA') %} {% if isLite %} {% else %} {% endif %} {% endif %}
    {% if return.type is not null and return.type.id == constant('CoreBundle\\Entity\\TypeReturn::BILL_PAYMENT') and roleRight == true %}
    Total devolución
    {{ render(controller('CoreBundle:ReturnStock:getTotalReturn', {'return' : return.id, 'shop' : return.shop.id })) }} €
    {% endif %} {% endif %}
    {% endif %}
    {% form_theme form 'bootstrap_3_layout.html.twig' %} {{ form_start(form) }} {{ form_errors(form) }}
    {{ form_row(form.dealer) }}
    {{ form_row(form.type) }}
    {{ form_row(form.reason) }}
    {{ form_row(form.methodOfPayment) }}
    {{ form_row(form.description ) }}
    {{ form_end(form) }}
    {% include '@Core/Return/return_detail_summary_articles_tab.html.twig' %}
    {% if return is defined %} {% endif %} {% endblock %} {% block script %} {% endblock %}