{{-- Encabezado --}}

Detalle de Venta

{{ $venta->Documento->nombre ?? 'Documento' }}
VENTA
N° {{ $venta->id }}
{{ $venta->fecha }}
{{-- Cliente --}}
RUT: {{ $venta->Cliente->rut ?? '—' }}
Cliente: {{ $venta->Cliente->razon_social ?? 'Consumidor Final' }}
Método de pago: {{ $venta->Metodo->nombre ?? '—' }}
{{-- Detalle de ítems --}} @php $tieneWms = $venta->Detalles->contains(fn($d) => !is_null($d->wms_ubicacion)); @endphp @if($tieneWms) @endif @foreach($venta->Detalles as $d) @if($tieneWms) @endif @endforeach
Artículo Cant. Unitario Neto TotalUbicación
{{ $d->nombre_articulo }} {{ number_format($d->cantidad, 2, ',', '.') }} {{ number_format($d->unitario, 0, ',', '.') }} {{ number_format($d->neto, 0, ',', '.') }} {{ number_format($d->total, 0, ',', '.') }} @if($d->wms_ubicacion) 📍 {{ $d->wms_ubicacion }} @else @endif
{{-- Totales --}}
@if($venta->neto > 0) @endif @if($venta->impuesto > 0) @endif
Neto$ {{ number_format($venta->neto, 0, ',', '.') }}
IVA (19%)$ {{ number_format($venta->impuesto, 0, ',', '.') }}
TOTAL$ {{ number_format($venta->total, 0, ',', '.') }}
Método: {{ $venta->Metodo->nombre ?? '—' }}