@extends('layouts.app') @section('title', 'Nueva Nota de Crédito') @section('content')

Nueva Nota de Crédito - {{ $type === 'purchase' ? 'Compra' : 'Venta' }}

Crear una nueva nota de crédito para {{ $type === 'purchase' ? 'compras' : 'ventas' }}

Volver
@csrf
Información de la Factura
@if($invoice)
Factura Seleccionada:

Número: {{ $invoice->invoice_number }}
{{ $type === 'purchase' ? 'Proveedor' : 'Cliente' }}: {{ $type === 'purchase' ? ($invoice->supplier->business_name ?? 'N/A') : ($invoice->client->business_name ?? 'N/A') }}
Fecha: {{ $invoice->invoice_date->format('d/m/Y') }}
Total: {{ number_format($invoice->total_amount, 2) }} {{ $invoice->currency ?? 'USD' }}

@endif
Motivo y Notas
Productos a Devolver
@if($invoice && $invoice->details && $invoice->details->count() > 0) @foreach($invoice->details as $index => $detail) @endforeach @endif
# Producto Cantidad Precio Unitario Impuesto % Subtotal Total Acción
{{ $index + 1 }} {{ $detail->product->name ?? 'N/A' }}
{{ $detail->product->code ?? '' }}
0.00 0.00
Total: 0.00

No hay productos agregados. Haz clic en "Agregar Producto" o "Cargar de Factura" para comenzar.

Cancelar
@endsection @push('styles') @endpush @push('scripts') @endpush