@extends('layouts.app') @section('title', 'Detail Penjualan - MCU Klinik Mustika') @section('breadcrumb')
| No. | Item | Batch | Jumlah | Harga | Total |
|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->item_name ?? ($item->pharmacyService?->name ?? ($item->drug?->name ?? '-')) }}{{ $item->item_type === 'drug' && $item->selling_unit_name ? ' (' . $item->selling_unit_name . ')' : '' }} @if ($item->item_type === 'drug' && $item->price_type === 'special') Harga Khusus @endif | {{ $item->drugBatch?->batch_number ?? '-' }} | {{ number_format( $item->selling_quantity ?? $item->quantity, 0, ',', '.', ) }}{{ $item->item_type === 'drug' && $item->unit_conversion_factor > 1 ? ' = ' . number_format($item->quantity, 0, ',', '.') . ' satuan dasar' : '' }} | Rp {{ number_format((float) $item->unit_price, 2, ',', '.') }} | Rp {{ number_format((float) $item->total_amount, 2, ',', '.') }} |
| Subtotal | Rp {{ number_format((float) $posTransaction->subtotal, 2, ',', '.') }} | ||||
| Diskon | Rp {{ number_format((float) $posTransaction->discount_amount, 2, ',', '.') }} | ||||
| Total | Rp {{ number_format((float) $posTransaction->total_amount, 2, ',', '.') }} | ||||
| Sudah Dibayar | Rp {{ number_format($posTransaction->paidAmount(), 2, ',', '.') }} | ||||
| Sisa Tagihan | Rp {{ number_format($remainingAmount, 2, ',', '.') }} | ||||
| Kembalian | Rp {{ number_format((float) $posTransaction->change_amount, 2, ',', '.') }} | ||||
| Kanal | Referensi | Nominal | Tunai Diterima | Kembalian |
|---|---|---|---|---|
| {{ strtoupper($payment->payment_method) }} | {{ $payment->reference_number ?: '-' }} | Rp {{ number_format((float) $payment->amount, 2, ',', '.') }} | Rp {{ number_format((float) $payment->cash_received, 2, ',', '.') }} | Rp {{ number_format((float) $payment->change_amount, 2, ',', '.') }} |
| Nomor | Alasan | Item | Total |
|---|---|---|---|
| {{ $return->return_number }} | {{ $return->reason ?: '-' }} | {{ $return->items->count() }} | Rp {{ number_format((float) $return->total_amount, 2, ',', '.') }} |