@if ($requisicion)
@endif
@if ($inventario)
@php
$validador = 0;
foreach ($inventario as $key => $in) {
if ($in->contenedor->unidad_id == $detalle->unidad_id) {
$validador = $validador + 1;
}
}
@endphp
@if ($validador > 0)
# |
Barcode |
Producto proveedor |
Lote |
Fecha vencimiento |
Cantidad |
Bodega |
Ubicaciones |
Unidad |
@php
$carreo = 0;
$class = '';
@endphp
@foreach ($inventario as $key => $item)
@php
$class = '';
if ($carreo <= 0) {
if ($key == 0) {
$class = 'bg-warning';
}
} else {
$class = 'bg-warning';
}
$carreo = $carreo + ($detalle->cantidad - $item->cantidad);
@endphp
@if ($class != '')
{{ $key + 1 }} |
{{ $item->barcode }} |
{{ $item->productoProveedor->producto }} |
{{ $item->lote }} |
{{ $item->contenedor->fecha_vencimiento }} |
{{ $item->cantidad }} |
{{ $item->bodega->bodega }} |
{{ $item->locacion->ubicacion }} |
{{ $item->contenedor->unidad->unidad }} |
@endif
@endforeach
@else
Error, no hay inventario para el producto solicitado
@endif
@if ($validador>0)
Ubicaciones sugeridas
@foreach ($localidadesSugeridas as $item)
{{ $item->ubicacion }}
@endforeach
@endif
@endif
@if ($inventarioEncontrado)
@if (count($inventarioEncontrado) > 0)
@if ($detalle->producto->id == $inventarioEncontrado->first()->producto_id)
@else
Error, El barcode no coincide con el producto.
{{ $inventarioEncontrado->first() }}
@endif
@else
Error, no hay ningun barcode reconocido.
@endif
@endif