| NO | NAMA PRODUK | SKU | SATUAN | HARGA MODAL | HARGA JUAL | QTY | DISKON | SUBTOTAL | CEK | HAPUS |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $idx + 1 }} |
{{ $item->product_name }}
@if($isZeroPrice && !$isValidated)
Harga jual belum diisi!
@elseif($isBelowCost && !$isValidated)
Harga di bawah modal!
@endif
@if((float) $item->qty_returned > 0)
Retur: {{ (int) $item->qty_returned }}
@endif
|
{{ $item->product?->sku ?? '-' }} | {{ $item->product?->unit ?? 'pcs' }} | Rp {{ number_format((int) ($item->product?->cost_per_unit ?? 0), 0, ',', '.') }} | @if(!$isLocked && !$isValidated) @else Rp {{ number_format((int) $item->product_price, 0, ',', '.') }} @endif | @if(!$isLocked && !$isValidated) @else {{ (int) $item->quantity - (int) $item->qty_returned }} @endif |
@if(!$isLocked && !$isValidated)
%
@else
{{ (float) $item->discount }}%
@endif
|
@php $effectiveQty = (int) $item->quantity - (int) $item->qty_returned; $effectiveSubtotal = (float) $item->qty_returned > 0 ? $effectiveQty * (float) $item->product_price : (float) $item->subtotal; @endphp Rp {{ number_format((int) $effectiveSubtotal, 0, ',', '.') }} | @if($isLocked) @if($isValidated) VALID @else CHECK @endif @elseif($isValidated) @else @endif | @if($isLocked) @elseif(!$isValidated) @else @endif |
| Belum ada item. Cari produk di atas untuk menambahkan. | ||||||||||