@include('sales._print-style')
{{ $receipt->tenant?->name ?? '-' }} @if ($receipt->tenant?->address) {{ $receipt->tenant->address }} @endif

BUKTI PENERIMAAN

{{ $receipt->receipt_number }}
Tanggal
{{ $receipt->receipt_date?->format('d/m/Y') ?? '-' }}
Status
{{ ucfirst($receipt->status) }}
Gudang
{{ $receipt->warehouse?->name ?? '-' }}
Referensi PO
{{ $receipt->purchaseOrder?->po_number ?? '-' }}

Dari (Supplier)

{{ $receipt->supplier?->name ?? '-' }}

{{ $receipt->supplier?->contact_person }} - {{ $receipt->supplier?->phone }}

{{ $receipt->supplier?->address }}

@foreach ($receipt->items as $index => $item) @endforeach
# Produk Qty Satuan Harga Beli Total Beli
{{ $index + 1 }}
{{ $item->product?->name ?? '-' }}
{{--
SKU: {{ $item->product?->sku ?? '-' }}
--}}
{{ rtrim(rtrim(number_format((float) $item->quantity, 3, ',', '.'), '0'), ',') }} {{ $item->unit?->code ?? '-' }} {{ 'Rp ' . number_format((float) $item->unit_price, 0, ',', '.') }} {{ 'Rp ' . number_format((float) $item->line_total, 0, ',', '.') }}
@php $money = fn($amount) => 'Rp ' . number_format((float) $amount, 0, ',', '.'); $subtotal = round((float) $receipt->items->sum('line_total'), 2); // Angkanya diambil dari dokumen lewat method yang sama dengan layar // detail (GoodsReceiptDetail.vue), bukan dijumlahkan ulang di sini. // Alasannya: pada mode "termasuk pajak" PPN sudah berada di dalam // nilai barang, jadi menambahkannya lagi membuat bukti penerimaan // terlihat 11% lebih mahal daripada nota supplier. $grandTotal = $receipt->totalAmount(); $dpp = $receipt->taxBase(); $hasTax = $receipt->hasTaxLine(); $taxLabel = $receipt->tax_mode === 'included' ? 'Pajak (11%) sudah termasuk' : 'Pajak (11%)'; $taxNote = match ($receipt->tax_mode) { 'included' => 'Harga sudah termasuk PPN 11%', 'excluded' => 'PPN 11% ditambahkan di atas DPP.', default => '', }; @endphp
Subtotal {{ $money($subtotal) }}
@if ($receipt->discount_amount > 0)
Diskon -{{ $money($receipt->discount_amount) }}
@endif @if ($receipt->shipping_cost > 0)
Ongkos Kirim {{ $money($receipt->shipping_cost) }}
@endif @if ($hasTax)
DPP {{ $money($dpp) }}
{{ $taxLabel }} {{ $money($receipt->tax_amount) }}
@if ($taxNote !== '')

{{ $taxNote }}

@endif @endif
Total akhir {{ $money($grandTotal) }}
@if ($receipt->note)

Catatan: {{ $receipt->note }}

@endif
Penerima
{{ $receipt->tenant?->name ?? '-' }}
Pengirim
{{ $receipt->supplier?->name ?? '-' }}
Dibuat oleh: {{ $receipt->createdBy?->employee?->full_name ?? ($receipt->createdBy?->username ?? '-') }}
Dicetak pada: {{ now()->format('d/m/Y H:i') }}
Powered by SANYATA ERP