{% endif %}
{% for flash_message in app.session.flashBag.get('success') %}
{{ flash_message }}
{% endfor %}
{% for flash_message in app.session.flashBag.get('warning') %}
{{ flash_message }}
{% endfor %}
{% if reception.typeStatusReception.id == constant('CoreBundle\\Entity\\TypeStatusReception::ID_STATUS_TO_COMPLETED') %}
{% if isPossibleResetReception["status"] == false %}
{{ isPossibleResetReception["reason"] }}
{% endif %}
{% endif %}
{% if reception is defined and reception.id %}
{% if ( reception.transfer | length ) == 0 and reception.typeStatusReception.id == 10 and reception.shop.typeShop.id != 1 and reception.stockOptimization is null %}
{% if isLite == false %}
{% endif %}
{% endif %}
{% if reception.typeStatusReception.id == 1 %}
{% if isLite == false %}
{% endif %}
{% if reception.stocks | length > 0 %}
{% if modify != true and isLite == false %}
{% endif %}
{% if reception.typeStatusReception.id == 10 %}
{% endif %}
COD-Recepción: {{ reception.getAlias }}
{% if roleRight == true %}
{{ reception.dealer.name }}
{% else %}
{{ reception.dealer.name }}
{% endif %}
{% if reception.shop %}
Tienda de recepción: {{ reception.shop.name }}
{% endif %}
{% if reception.orderEAN %}
Pedido EAN {{ reception.orderEAN.alias }}
{% endif %}
{% if reception.invoiceElements | length > 0 %}
{% for invoiceElement in reception.invoiceElements %}
Factura {{ invoiceElement.invoice.codeInvoice }}
{% endfor %}
{% endif %}
Fecha de creación: {{ reception.date | date('d-m-Y \\a \\l\\a\\s H:i:s') }} {{ reception.typeStatusReception.description }}
{% if isLite %}
{% set received = 0 %}
{% for item in reception.stocksLite %}
{% set received = received + item.qty %}
{% endfor %}
{{ received }}
{% else %}
{{ reception.stocks | length }}
{% endif %}
RECIBIDOS
{% if articles is defined %}
{{ articles | length }}
{% else %}
0
{% endif %}
ARTICULOS
0 artículos seleccionados.
{% if reception.typeStatusReception.id == 1 %}
No hay modificaciones para ejecutar en la recepción.