Auditing & Reversals Tutorial
This tutorial shows camp directors and store leads how to verify camper balances, undo mistaken checkouts safely without mutating historical records, and export end-of-camp settlement packages.
Step 1: Open the Camper Profile & Balance Card
- Select Campers in the workspace sidebar.
- Scan a camper’s wristband or search by name/cabin.
- Click the camper to inspect their Profile, Entitlement Status, and live Wallet Balance (computed directly from
v_camper_balancesin exact integer cents).

Step 2: Inspect the Immutable Ledger History
- Open the camper’s History tab to view every chronological transaction (
purchase,deposit,refund,reversal,adjustment). - Tap any entry to open Invoice Details, displaying:
- Exact UTC timestamp and payment method (
wallet,cash,card,check, oradjustment). - Recorded cashier (
operator_name_snapshot). - Itemized product and category snapshots with unit price and line totals in cents.
- Exact UTC timestamp and payment method (

Step 3: Process a Non-Destructive Reversal (Refund)
If a cashier scanned the wrong snack or a camper returns an unworn shirt:
- Select the original purchase entry inside Invoice Details.
- Click Refund / Reverse Entry and confirm.
- Camp Store preserves full double-entry audit integrity:
- Original Entry Unchanged: The original
ledger_entriesrow is never edited or deleted. - Offsetting Entry Appended: A new
refund/reversalentry is inserted withreverses_entry_idpointing to the original entry (a databaseUNIQUEconstraint guarantees the same sale cannot be refunded twice). - Exact Cents & Stock Restored: The camper’s
balance_cents(v_camper_balances) increases by the exact integer cents and positiveinventory_movements(reason = 'refund') return the units tov_product_stock.stock_qty.
- Original Entry Unchanged: The original
Step 4: Export 1-Click PDF & XLSX Settlement Reports
At the end of the session:
- Navigate to Reports in the workspace.
- Choose Export Settlement
.xlsxor Download Settlement PDF to generate:- Camp Overview KPIs (gross sales, refunds, net sales, cash vs. wallet totals).
- Camper Settlement Balances sorted naturally by cabin (
Cabin 2beforeCabin 10), showing refunds owed to parents orUnlimitedtabs due. - Stock Shrinkage & Cashier Shift Audits ready for camp bookkeeping.