Docs Tutorials

Auditing & Reversals Tutorial

Inspect camper ledger histories, process immutable transaction reversals, reconcile physical counts, and export 1-click PDF/XLSX settlement reports.

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

  1. Select Campers in the workspace sidebar.
  2. Scan a camper’s wristband or search by name/cabin.
  3. Click the camper to inspect their Profile, Entitlement Status, and live Wallet Balance (computed directly from v_camper_balances in exact integer cents).

Camper Details Profile


Step 2: Inspect the Immutable Ledger History

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

Invoice Details Pane


Step 3: Process a Non-Destructive Reversal (Refund)

If a cashier scanned the wrong snack or a camper returns an unworn shirt:

  1. Select the original purchase entry inside Invoice Details.
  2. Click Refund / Reverse Entry and confirm.
  3. Camp Store preserves full double-entry audit integrity:
    • Original Entry Unchanged: The original ledger_entries row is never edited or deleted.
    • Offsetting Entry Appended: A new refund / reversal entry is inserted with reverses_entry_id pointing to the original entry (a database UNIQUE constraint 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 positive inventory_movements (reason = 'refund') return the units to v_product_stock.stock_qty.

Step 4: Export 1-Click PDF & XLSX Settlement Reports

At the end of the session:

  1. Navigate to Reports in the workspace.
  2. Choose Export Settlement .xlsx or 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 2 before Cabin 10), showing refunds owed to parents or Unlimited tabs due.
    • Stock Shrinkage & Cashier Shift Audits ready for camp bookkeeping.