{% for flash_message in app.session.flashBag.get('danger') %}
{{ flash_message | raw }}
{% endfor %}
{% include '@Core/Sales/sales_searcher_header.html.twig' %}
LISTADO DE OPERACIONES
Fecha inicio
Fecha completado
Cod.Venta
Fac. Simplificada
Fac. Nominativa
Vendedor
Tienda
Und. Vendidas
F.Pago cliente
Descuento
Total venta
Total ingreso
Stock en devolución
Estado
Acceder
{% for obj in sales %}
{% set canViewTheRow = false %}
{% if not roleRight and obj.shopId == shopInSession %}
{% set canViewTheRow = true %}
{% else %}
{% if (roleRight or isRightSaleListInShops) %}
{% set canViewTheRow = true %}
{% endif %}
{% endif %}
{% if canViewTheRow %}
{% if obj.typeStatusSaleId == constant('CoreBundle\\Entity\\TypeStatusSale::ID_STATUS_TO_IN_RESERVED') or obj.typeStatusSaleId == constant('CoreBundle\\Entity\\TypeStatusSale::ID_STATUS_TO_IN_RESERVED_CANCELED') %}
0.00
{% else %}
{{ obj.totalFinal }}
{% endif %}
{{ obj.totalIncome }}
{% if obj.returnedUnits > 0 %}
Devolución
{% endif %}
{% if obj.notesInternal != "" %}
{% endif %}
{% if obj.notes != "" %}
{% endif %}
{% set color = 'grey' %}
{% if obj.typeStatusSaleId == '1' %}
{% set color = 'green' %}
{% elseif obj.typeStatusSaleId == '4' %}
{% set color = 'yellow' %}
{% elseif obj.typeStatusSaleId == '5' %}
{% set color = 'yellow' %}
{% elseif obj.typeStatusSaleId == '6' %}
{% set color = 'orange' %}
{% elseif obj.typeStatusSaleId == '10' %}
{% set color = 'grey' %}
{% elseif obj.typeStatusSaleId == '11' %}
{% set color = 'grey' %}
{% elseif obj.typeStatusSaleId == '20' %}
{% set color = 'info' %}
{% else %}
{% set color = 'grey' %}
{% endif %}
{{ obj.typeStatusSaleName }}
{% if obj.isInvoiced == true %}
Facturado
{% endif %}