@extends('layouts.master') @section('title', 'Detail Penjualan KSO') @section('styles') @endsection @section('content')
| No. | Barang | Ukuran | Satuan | Qty | Harga Jual | Subtotal | Lot (Stok KSO) |
|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item->nama_barang }}
{{ $item->kode_barang }}
|
{{ $item->ukuran ?: '—' }} | {{ $item->satuan }} | {{ $item->qty }} | Rp {{ number_format($item->harga_jual, 0, ',', '.') }} | Rp {{ number_format($item->subtotal, 0, ',', '.') }} |
@if($item->itemStoks->isNotEmpty())
@foreach($item->itemStoks as $lot)
{{ $lot->no_lot ?: 'Tanpa lot' }} — ED: {{ $lot->tanggal_kedaluwarsa?->format('d/m/Y') ?? '—' }}
— Qty: {{ $lot->qty_ambil }}
@endforeach
@else
—
@endif
|
| Subtotal | Rp {{ number_format($kso->subtotal, 0, ',', '.') }} | ||||||
| DPP (11/12 × Subtotal) | Rp {{ number_format($kso->dpp, 0, ',', '.') }} | ||||||
| PPN 12% | Rp {{ number_format($kso->ppn, 0, ',', '.') }} | ||||||
| Total Harga | Rp {{ number_format($kso->total_harga, 0, ',', '.') }} | ||||||