{{ $company['name'] }}
@if($company['address']){{ $company['address'] }}
@endif @if($company['phone']){{ $company['phone'] }}
@endif @if($company['email']){{ $company['email'] }}
@endif @if($settings->cuit)CUIT: {{ $settings->cuit }}
@endif @if($settings->ingresos_brutos)Ingresos Brutos: {{ $settings->ingresos_brutos }}
@endif Cond. IVA: RESPONSABLE INSCRIPTO
Inicio Act.: {{ $settings->start_date ?? '01/09/2023' }}
NOTA de PEDIDO
Nº: NP-{{ str_pad($order->id, 4, '0', STR_PAD_LEFT) }}
Fecha Emisión: {{ $order->created_at->format('d/m/Y') }}
Hora: {{ $order->created_at->format('H:i:s') }}
Tipo: P - Cod.99
🛒 PEDIDO CONFIRMADO - Este documento representa un pedido de compra confirmado
DATOS DEL CLIENTE
@php $totalWeight = $orderItems->sum(function($item) { return ($item->qty ?? 1) * ($item->product->weight ?? 0.5); }); @endphp
Razón Social: {{ strtoupper($order->first_name . ' ' . $order->last_name) }} CUIT: {{ $order->tax_id ?? '-' }}
Domicilio: {{ strtoupper($order->address) }} Cond. IVA: {{ $order->customer_type == 'business' ? 'RESPONSABLE INSCRIPTO' : 'CONSUMIDOR FINAL' }}
Localidad: {{ strtoupper($order->city) }} Cond. Venta: {{ strtoupper($order->payment_terms ?? 'CONTADO') }}
Provincia: {{ strtoupper($order->state) }} Remito: @if($totalWeight > 0)| Peso Total: {{ number_format($totalWeight, 3) }}@endif
CP: {{ $order->zip }}
@foreach($orderItems as $item) @php $subtotal = $item->qty * $item->price; $discount = 0; // Los pedidos ya tienen los precios finales $total = $item->total; @endphp @endforeach
Código Cantidad Unidad Descripción P. Unitario Descuento Importe
@if($item->product && $item->product->CO_ARTI) {{ trim($item->product->CO_ARTI) }} @else - @endif {{ number_format($item->qty, 2) }} U {{ strtoupper($item->name) }} {{ number_format($item->price, 2) }} 0.00 {{ number_format($total, 2) }}
@php // Calcular IVA (21% del subtotal) $ivaBase = $order->subtotal - $order->discount; $iva21 = $ivaBase * 0.21; $totalConIva = $ivaBase + $iva21; $finalTotalWithShipping = $totalConIva + ($order->shipping ?? 0); @endphp
BULTOS {{ $orderItems->count() }}
ITEMS {{ $orderItems->sum('qty') }}
SUBTOTAL {{ number_format($order->subtotal, 2) }}
@if($order->discount > 0)
DESCUENTO {{ number_format($order->discount, 2) }}
@endif
NO GRAVADO {{ number_format($ivaBase, 2) }}
IVA 21% {{ number_format($iva21, 2) }}
IVA 10.5% 0.00
@if($order->shipping > 0)
OTROS {{ number_format($order->shipping, 2) }}
@endif
TOTAL {{ number_format($finalTotalWithShipping, 2) }}
Subtotal: {{ number_format($order->subtotal, 2) }}
Descuento: {{ number_format($order->discount, 2) }}
Neto Gravado: {{ number_format($ivaBase, 2) }}
IVA (21.00%): {{ number_format($iva21, 2) }}
IVA (10.50%): 0.00
Otros ( 0.00%): {{ number_format($order->shipping ?? 0, 2) }}
TOTAL: {{ number_format($finalTotalWithShipping, 2) }}