@extends('layouts.app')
@section('title', 'Void / Adjust OR')
@section('content')
Void / Adjust Official Receipt
{{-- Filters quick bar (optional for MVP; static) --}}
@php
// ---------- STATIC MOCK DATA (MVP) ----------
// OR header-level list (for modal and quick search)
$orRows = [
[
'or_no' => '001120',
'issued_at' => '2025-10-18 09:05',
'cashier' => 'cashier1@lgu.local',
'shift' => 'S-2025-10-18-A',
'assessment_no' => 'ASM-2025-00421',
'payor' => 'Dev Coffee Roasters',
'method' => 'Cash',
'fund' => 'General Fund',
'discount' => 0.0,
'surcharge' => 250.0,
'interest' => 0.0,
'amount' => 12500.0,
'net' => 12750.0,
'status' => 'Issued',
'in_deposit' => false, // cannot void if true (without supervisor override)
'items' => [
[
'code' => 'BP-TAX',
'desc' => 'Business Tax - Retail',
'fund' => 'General Fund',
'amount' => 9000.0,
],
['code' => 'REG-FEE', 'desc' => 'Regulatory Fee', 'fund' => 'General Fund', 'amount' => 2000.0],
['code' => 'SUR', 'desc' => 'Surcharge', 'fund' => 'General Fund', 'amount' => 250.0],
['code' => 'OTH', 'desc' => 'Misc', 'fund' => 'General Fund', 'amount' => 1250.0],
],
],
[
'or_no' => '001121',
'issued_at' => '2025-10-18 09:20',
'cashier' => 'cashier1@lgu.local',
'shift' => 'S-2025-10-18-A',
'assessment_no' => 'ASM-2025-00422',
'payor' => 'Byte Bakery',
'method' => 'Check',
'fund' => 'General Fund',
'discount' => 0.0,
'surcharge' => 200.0,
'interest' => 0.0,
'amount' => 8000.0,
'net' => 8200.0,
'status' => 'Issued',
'in_deposit' => true, // simulate included in RCD/Deposit
'items' => [
[
'code' => 'BP-TAX',
'desc' => 'Business Tax - Retail',
'fund' => 'General Fund',
'amount' => 6000.0,
],
['code' => 'REG-FEE', 'desc' => 'Regulatory Fee', 'fund' => 'General Fund', 'amount' => 2000.0],
['code' => 'SUR', 'desc' => 'Surcharge', 'fund' => 'General Fund', 'amount' => 200.0],
],
],
[
'or_no' => '001122',
'issued_at' => '2025-10-18 10:10',
'cashier' => 'cashier2@lgu.local',
'shift' => 'S-2025-10-18-B',
'assessment_no' => 'ASM-2025-00400',
'payor' => 'Pixel Print Shop',
'method' => 'Cash',
'fund' => 'General Fund',
'discount' => 0.0,
'surcharge' => 0.0,
'interest' => 0.0,
'amount' => 5000.0,
'net' => 5000.0,
'status' => 'Voided',
'in_deposit' => false,
'items' => [
['code' => 'FEE', 'desc' => 'Sample Fee', 'fund' => 'General Fund', 'amount' => 5000.0],
],
],
];
@endphp
{{-- LEFT: RECEIPT DETAILS --}}
{{-- Empty state --}}
No OR selected
Find an OR to void or create an adjusting receipt.
{{-- Details --}}
This OR is already
Voided.
You cannot void it again. You may review audit logs or print copies if allowed.
This OR has been included in a
deposit/RCD.
Voiding requires Supervisor override and proper documentation.
| Fee Code |
Description |
Fund |
Amount |
{{-- filled by JS --}}
| Total |
0.00 |
{{-- RIGHT: ACTION + AUDIT --}}
{{-- Action --}}
Voiding is not allowed if the OR is already included in a deposit/RCD unless a
supervisor authorizes.
{{-- Audit Trail --}}
- Select an OR to view audit entries.
{{-- Choose OR Modal --}}
{{-- Toasts --}}
@endsection
@push('scripts')
@endpush