@php
$inventariado = (new Productos())->obtenerProductoInventariado($v->producto_id);
@endphp
- {{ $v->pr_venta_producto_nombre }}
@if (isset($inventariado) && $inventariado)
{!! \ICO::icon_check_circle('', '', 'green') !!}
@endif
@if ($v->pr_venta_tipo == 'mercadolibre')
@if (!empty($v->pr_venta_producto_sku))
- SKU:
{{ $v->pr_venta_producto_sku }}
@else
- Agregar
SKU
@endif
@else
- SKU: {{ $v->pr_venta_producto_sku }}
@endif
- Cantidad:
{{ $v->pr_venta_producto_cantidad }}
@if ($v->pr_venta_tipo == 'mercadolibre' && in_array($v->empresa_id, [187, 190]))
@php
$detallesVenta = (new VentasMercadoLibreProductos())->datosDetalleVenta(
$v->transaccion_detalle_id,
);
$codigoVentaWMS = '';
$tipoVentaML = '';
if (in_array($v->pr_venta_estado_pedido, [0, 2])) {
if (!empty($v->pr_venta_ml_pack_id)) {
$codigoVentaWMS = $v->pr_venta_ml_pack_id;
$tipoVentaML = 'pack';
} else {
$codigoVentaWMS = $v->pr_venta_ml_id;
$tipoVentaML = 'orden';
}
}
@endphp
@if ($detallesVenta)
@php $codigosPorMLC = (new CodigosProveedoresPorMLC())->codigosPorMLC($detallesVenta->producto_id_ml); @endphp
@if ($codigosPorMLC)
@php $codigos = $codigosPorMLC->codigos_proveedores; @endphp
@include('dashboard.mercadolibre.productos-ml.alert-codigos-proveedores-ml')
@else
Agregar códigos de proveedor
@endif
@endif
@endif