Docs Operations POS Operations

Running Inventory, POS & Printable Barcodes

Operate the <2ms offline SQLite checkout terminal, use multiplier scan codes, switch cashiers by PIN, audit shelf counts, and print barcode sheets.

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

  1. 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(?)).
  2. Scan Products into Cart: Scan product barcodes to increment items in the active cart.
  3. 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 when allow_cash is enabled.
  4. 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, and inventory_movements, then replicate to PostgreSQL 17 automatically in the background.

Storefront Cashier Terminal


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:

  1. Tap the Cashier / Lock badge in the top toolbar.
  2. The incoming cashier enters their 4–6 digit PIN.
  3. The device verifies the PIN offline against the synced PBKDF2-SHA256 hash—no server round-trip required.
  4. Every subsequent sale, cash tender, or refund records the new cashier’s operator_id and operator_name_snapshot in ledger_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:

  1. Open Inventory → Physical Count Audit.
  2. Scan or select products (sorted naturally by category and name) and enter the actual units counted on the shelf.
  3. Camp Store compares Expected On-Hand Stock (stock_qty from v_product_stock) against your physical count.
  4. Confirming the audit writes an explicit audit or shrinkage row into inventory_movements (alongside sale, refund, restock, adjustment, and initial), 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) and CANCEL (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 2 appears before Cabin 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:

  1. Open the camper’s profile (Campers tab) and select History.
  2. Open the original ledger entry (Invoice Details) and click Refund / Reverse Entry.
  3. Camp Store appends a new offsetting entry with reverses_entry_id set (preventing duplicate reversals), credits the exact integer cents back to the camper’s balance, and writes a positive refund delta to inventory_movements.