Cliente: {{ $pagoMaestro->cliente->nombre_comercial ?? 'N/A' }}
Usuario: {{ $pagoMaestro->user->name ?? 'N/A' }}
Monto Total: S/ {{ number_format($pagoMaestro->monto_total, 2) }}
Fecha: {{ $pagoMaestro->fecha ? \Carbon\Carbon::parse($pagoMaestro->fecha)->format('d/m/Y H:i') : 'N/A' }}
Estado: @if ($pagoMaestro->estado == 1) Activo @else Anulado @endif
Comentario: {{ $pagoMaestro->comentario ?? 'Sin comentario' }}
Boucher:
@elseBoucher: Sin boucher disponible
@endifPagos
Ingresos
Ventas
Los pagos se distribuyen entre las ventas pendientes de pago, de menor a mayor.
Total de Pagos: S/ {{ number_format($pagoMaestro->pagos->sum('monto'), 2) }}
Venta ID | Serie Venta | Monto | Pendiente | Fecha |
---|---|---|---|---|
{{ $pago->venta_id }} | {{ $pago->venta->serie_venta ?? 'N/A' }} | S/ {{ number_format($pago->monto, 2) }} | @if ($pago->venta && $pago->venta->monto_pendiente > 0) S/ {{ number_format($pago->venta->monto_pendiente, 2) }} @else Pagado @endif | {{ $pago->fecha ? \Carbon\Carbon::parse($pago->fecha)->format('d/m/Y') : 'N/A' }} |
Cuando existe un excedente, se registra un ingreso para compensar el saldo a favor del cliente.
Monto | Motivo | Fecha |
---|---|---|
S/ {{ number_format($ingreso->monto, 2) }} | @if ($ingreso->estado == 1) {{ $ingreso->motivo }} @else {{ $ingreso->descripcion }} @endif | {{ $ingreso->fecha_registro ? \Carbon\Carbon::parse($ingreso->fecha_registro)->format('d/m/Y') : 'N/A' }} |
Las ventas con excedente se registran para compensar el saldo a favor del cliente.
Serie | Saldo | Comentario |
---|---|---|
{{ $venta->serie_venta }} | S/ {{ number_format($venta->saldo, 2) }} | {{ $venta->comentario ?? 'N/A' }} |