@php $money = fn ($value) => 'R '.number_format((float) $value, 2); $legalIdentityLines = $company->legalIdentityLines(); @endphp

Credit Note

{{ $creditNote->credit_note_number }}

{{ $company->business_name }}
@if ($company->email) {{ $company->email }}
@endif @foreach ($legalIdentityLines as $line) {{ $line['label'] }}: {{ $line['value'] }}
@endforeach
Client{{ $creditNote->client->name }}
@if ($creditNote->client->department)
Department{{ $creditNote->client->department }}
@endif @if ($creditNote->client->vat_number)
Client VAT number{{ $creditNote->client->vat_number }}
@endif
Invoice{{ $creditNote->invoice->invoice_number }}
Issue date{{ $creditNote->issue_date->format('d M Y') }}
Type{{ $creditNote->typeLabel() }}
Status{{ $creditNote->statusLabel() }}
Original invoice total{{ $money($creditNote->invoice->grand_total) }}
Credit note amount{{ $money($creditNote->amount) }}
Adjusted invoice total{{ $money($creditNote->invoice->adjustedTotal()) }}
Total paid{{ $money($creditNote->invoice->totalPaid()) }}
Collectible balance after active credits{{ $money($creditNote->invoice->remainingBalance()) }}
@if ($creditNote->invoice->overpaidAmount() > 0)
Refund / overpayment{{ $money($creditNote->invoice->overpaidAmount()) }}
@endif
Reason

{{ $creditNote->reason }}

@if (! $creditNote->isFinanciallyActive())

Draft credit notes are recorded for review and do not reduce invoice balances until issued or applied.

@elseif ($creditNote->type === AppModelsCreditNote::TYPE_ADJUSTMENT)

This adjustment reduces the invoice collectible balance without recording cash returned to the client.

@else

This refund credit records money returned or due back to the client.

@endif @if ($creditNote->type === \App\Models\CreditNote::TYPE_REFUND)

Refund method: {{ $creditNote->refund_method ?: 'Not recorded' }}

Refund reference: {{ $creditNote->refund_reference ?: 'Not recorded' }}

@endif