Back to Returns{{ $thermal?'A4 Format':'Thermal Format' }}
@php($snapshot=$return->snapshot??[]) @php($seller=$snapshot['seller']??[]) @php($buyer=$snapshot['buyer']??[]) @php($taxGroups=$return->items->groupBy(fn($i)=>($i->tax_type??'unknown').'|'.($i->tax_rate??'unknown'))) @php($taxLabel=function($i){return match($i->tax_type){'exempt'=>'Exempt','zero_rated'=>'Zero Rated','non_vat','non_taxable'=>'Non Taxable','standard'=>$i->tax_rate!==null?'VAT '.number_format((float)$i->tax_rate,2).'%':'VAT rate not recorded',default=>'VAT type not recorded'};})

{{ $seller['name']??'JEVAPOS' }}

@foreach(['address','phone','email'] as $field)@if(!empty($seller[$field]))

{{ $seller[$field] }}

@endif @endforeach @if(!empty($seller['pin']))

Seller PIN: {{ $seller['pin'] }}

@endif

CREDIT NOTE

{{ $return->credit_note_no }}

Credit Note Date: {{ $return->returned_at?->format('d/m/Y h:i a')??'Not recorded' }}

Original Invoice: {{ $return->invoice_no }}

Original Invoice Date: {{ $return->invoice_date?->format('d/m/Y h:i a')??'Not recorded' }}

@if(!empty($snapshot['original_control_unit_invoice_no']))

Original Control Unit Invoice: {{ $snapshot['original_control_unit_invoice_no'] }}

@endif

Customer: {{ $buyer['name']??$return->customer_name??'Walk in' }}

@if(!empty($buyer['pin']))

Customer PIN: {{ $buyer['pin'] }}

@endif @if(!empty($buyer['address']))

{{ $buyer['address'] }}

@endif

Reason: {{ $return->reason }}

@foreach($return->items as $item)@endforeach
Returned ItemQtyOriginal Unit PriceNet CreditVATTotal Credit
{{ $item->product_name }}
{{ $taxLabel($item) }}
{{ number_format($item->quantity,2) }} {{ $item->uom }}{{ number_format($item->unit_price,2) }}{{ number_format((float)$item->line_total-(float)$item->tax_amount,2) }}{{ number_format($item->tax_amount,2) }}{{ number_format($item->line_total,2) }}
@foreach($taxGroups as $group)@endforeach
VAT SummaryNet CreditVATTotal
{{ $taxLabel($group->first()) }}{{ number_format($group->sum('line_total')-$group->sum('tax_amount'),2) }}{{ number_format($group->sum('tax_amount'),2) }}{{ number_format($group->sum('line_total'),2) }}
@if((float)$return->discount_amount>0)@endif
Discount Included (KES){{ number_format($return->discount_amount,2) }}
Net Credit (KES){{ number_format($return->subtotal,2) }}
VAT Credited (KES){{ number_format($return->tax_amount,2) }}
Total Credit (KES){{ number_format($return->total_amount,2) }}
{{ $return->fiscalStatus() }}@if($return->is_legacy)
Reconstructed from historical return entries. This does not establish that an original fiscal credit note was issued.@endif
@if($etimsEnabled && $return->etimsDocument)@php($document=$return->etimsDocument)
@if($document->control_unit_invoice_no)Control Unit Credit Note: {{ $document->control_unit_invoice_no }}
@endif @if($document->kra_receipt_no)Fiscal Receipt No: {{ $document->kra_receipt_no }}
@endif @if($document->receipt_signature)Signature: {{ $document->receipt_signature }}@endif @if($qr)

Credit note verification QR code

@endif
@endif
Prepared / Authorised by: __________________Customer acknowledgement: __________________