@extends('documents.inventory._layout', [ 'documentTitle' => 'Receipt Confirmation', 'reference' => $order->transfer_reference, 'documentDate' => $order->received_date ? \Carbon\Carbon::parse($order->received_date)->format('d M Y') : now()->format('d M Y'), ]) @section('header-meta')
| From Location | {{ $order->fromLocation?->name ?? '—' }} |
| Received At | {{ $order->toLocation?->name ?? '—' }} |
| Received By | {{ $order->receivedBy?->name ?? '—' }} |
| Receipt Date | {{ $order->received_date ? \Carbon\Carbon::parse($order->received_date)->format('d M Y') : '—' }} |
| Receiver Notes | {{ $order->receiver_comment }} |
| Total Dispatched: {{ number_format($totalDispatched) }} | Total Received: {{ number_format($totalReceived) }} | Net Variance: {{ $totalVariance >= 0 ? '+' : '' }}{{ number_format($totalVariance) }} |
| # | Product | Lot | Dispatched | Received | Variance | Variance Reason |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item->product?->name ?? '—' }}
@if($item->product?->sku) {{ $item->product->sku }}@endif |
{{ $item->lot?->lot_number ?? '—' }} | {{ number_format($dispatched) }} | {{ number_format($received) }} | {{ $variance >= 0 ? '+' : '' }}{{ number_format($variance) }} | {{ $item->reception_variance_reason ?? ($variance === 0 ? '—' : 'Not specified') }} |
| Totals | {{ number_format($totalDispatched) }} | {{ number_format($totalReceived) }} | {{ $totalVariance >= 0 ? '+' : '' }}{{ number_format($totalVariance) }} | |||
|
Received by
Name: {{ $order->receivedBy?->name ?? '___________________________' }} Date: ___________________________ Signature: ______________________ |
Approved by (Warehouse Manager)
Name: ___________________________ Date: ___________________________ Signature: ______________________ |