@vite(['resources/css/app.css'])
@php use Carbon\Carbon; $docNumber = 'PO-FUL/' . Carbon::parse($sale->report_date)->format('Y/m/') . str_pad($sale->id, 4, '0', STR_PAD_LEFT); $companyName = 'PT GRACE INDO PRATAMA'; $companyAddress = 'Jl. Industri No. 12, Medan, Sumatera Utara'; $companyPhone = '(061) 12345678'; $saleDate = Carbon::parse($sale->sale_date)->translatedFormat('d F Y'); $printDate = now()->translatedFormat('d F Y'); $customerDisplay = $sale->customer_name ?: '-'; $customerRegion = trim( ($sale->customer_city ? $sale->customer_city . ', ' : '') . ($sale->customer_province ?: ''), ); $totalOrdered = $sale->items->sum('quantity'); $totalFulfilled = $sale->items->sum('fulfilled_quantity'); $totalRemaining = max(0, $totalOrdered - $totalFulfilled); @endphp {{-- Toolbar --}}
Dokumen ini mencatat penyerahan barang dari stok ready terhadap pesanan Pre-Order
| No | SKU | Nama Produk | Ordered | Dipenuhi | Sisa | Unit | Status |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->productStock?->productVariant?->sku ?? '-' }} | {{ $item->productStock?->productVariant?->name ?? '-' }} | {{ $item->quantity }} | {{ $item->fulfilled_quantity }} | {{ $remaining }} | {{ $item->productStock?->productVariant?->unit ?? '-' }} | {{ $status }} |
| No | Tanggal Penyerahan | Produk | SKU | Qty | Petugas | Waktu Input |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $fulfill->fulfillment_date?->format('d/m/Y') ?? '-' }} | {{ $fulfill->saleItem?->productStock?->productVariant?->name ?? '-' }} | {{ $fulfill->saleItem?->productStock?->productVariant?->sku ?? '-' }} | {{ $fulfill->quantity }} | {{ $fulfill->createdBy?->name ?? '-' }} | {{ $fulfill->created_at?->format('d/m/Y H:i') ?? '-' }} |
Dokumen ini hanya mencatat pemenuhan stok dari gudang terhadap pesanan Pre-Order. Bukti Serah Terima final (BST) akan diterbitkan terpisah setelah seluruh pembayaran dinyatakan lunas.