For Store Operators, Cashiers, and Storefront Leads. Learn how to run high-speed barcode checkouts offline, handle quantity multipliers, swap cashiers via PIN, run physical count audits, and print scannable barcode sheets.
1. <2ms Offline SQLite Checkout Flow
The Camp Store v2.0 POS terminal runs against a local PowerSync SQLite database inside your browser (OPFS/IndexedDB) or native iOS/Android device. Every scan executes in under 2 milliseconds—even if camp internet drops completely during peak afternoon snack lines.
The Standard Checkout Sequence
- Identify the Camper: Scan the camper’s wristband barcode (or type their name/cabin into the lookup bar).
- Leading zeros (
0,0042) are preserved verbatim. - Lookups use case-insensitive SQLite indexing (
LOWER(code) = LOWER(?)).
- Leading zeros (
- Scan Products into Cart: Scan product barcodes to increment items in the active cart.
- Check Entitlements & Payment Method:
- The right-hand cart pane immediately validates the cart against the camper’s balance (
v_camper_balances) and entitlement (strict,none,approval,unlimited), or switches to Cash whenallow_cashis enabled.
- The right-hand cart pane immediately validates the cart against the camper’s balance (
- Finalize Checkout: Tap Checkout / Pay, press
Enter, or scan your camp’s laminated Checkout Barcode (cart_checkout_code).- Transactions commit locally to
ledger_entries,ledger_items, andinventory_movements, then replicate to PostgreSQL 17 automatically in the background.
- Transactions commit locally to

2. Barcode Multiplier & Command Syntax
Camp Store v2.0 includes a hardened scan parser (parseScanInput) designed for rapid multi-item checkouts:
| Scan Input | Behavior |
|---|---|
SKU123 |
Adds 1 unit of the product matching SKU123 (or selects camper if it matches a wristband). |
3*SKU123 |
Adds 3 units of SKU123 in a single scan. |
*3 |
Arms a pending ×3 multiplier for the next scanned product. |
* (bare asterisk) |
Safely ignored / treated as invalid multiplier input without crashing the terminal. |
CHECKOUT (or camp cart_checkout_code) |
Case-insensitive trigger that submits the active cart immediately. |
CANCEL (or camp cart_reset_code) |
Case-insensitive trigger that clears the active cart immediately. |
3. Cashier Quick-Switch PINs
When multiple operators share one register iPad or Chromebook during a camp afternoon:
- Tap the Cashier / Lock badge in the top toolbar.
- The incoming cashier enters their 4–6 digit PIN.
- The device verifies the PIN offline against the synced PBKDF2-SHA256 hash—no server round-trip required.
- Every subsequent sale, cash tender, or refund records the new cashier’s
operator_idandoperator_name_snapshotinledger_entries.
4. Physical Count Audits & Shrinkage Tracking
Because v2.0 tracks inventory through immutable inventory_movements rather than overwriting a single counter, shelf audits remain transparent:
- Open Inventory → Physical Count Audit.
- Scan or select products (sorted naturally by category and name) and enter the actual units counted on the shelf.
- Camp Store compares Expected On-Hand Stock (
stock_qtyfromv_product_stock) against your physical count. - Confirming the audit writes an explicit
auditorshrinkagerow intoinventory_movements(alongsidesale,refund,restock,adjustment, andinitial), keeping your financial and stock shrinkage reports exact.
5. Printable Barcode Sheets
Eliminate manual typing at the register by printing ready-to-scan sheets directly from the Camp Store workspace:
- Terminal Command Cards: Print
CHECKOUT(cart_checkout_code) andCANCEL(cart_reset_code) barcode cards to tape next to each scanner. - Camper Wristband / Roster Sheets: Print wristband or check-in sheets grouped by cabin (using natural alphanumeric sorting so
Cabin 2appears beforeCabin 10). - Shelf & Bin Labels: Print SKU barcode stickers for unpackaged snacks, camp stickers, or apparel racks that lack manufacturer UPC labels.
6. Transaction Reversals (Refunds)
If a cashier scans the wrong item or a camper exchanges a sweatshirt:
- Open the camper’s profile (
Camperstab) and select History. - Open the original ledger entry (
Invoice Details) and click Refund / Reverse Entry. - Camp Store appends a new offsetting entry with
reverses_entry_idset (preventing duplicate reversals), credits the exact integer cents back to the camper’s balance, and writes a positiverefunddelta toinventory_movements.