# Offline POS Billing & Hardware Integration ## Tauri Desktop POS Architecture Offline walk-in counter billing operates via a **Tauri + SQLite** native application. ```mermaid flowchart TD subgraph Local Tauri Desktop Environment UI["React POS Frontend UI"] Engine["Local Billing Engine"] SQLite[("Local SQLite Database")] Hardware["ESC/POS Printer & Barcode Scanner"] UI --> Engine Engine <--> SQLite Engine --> Hardware end subgraph Network Gateway SyncQueue["Local Transaction Queue"] Engine --> SyncQueue SyncQueue -.->|Internet Restored| Server["FastAPI PosSyncRouter"] end ``` --- ## CBIC 16-Character Terminal Serial Allocation To prevent collisions while offline: $$\text{Format: } \text{C1P2-26-000452} \quad (\text{14 Characters} \le 16\text{ Max Limit})$$ * `C1`: Store 1 (Chennai) * `P2`: POS Terminal 2 * `26`: Financial Year 2026 * `000452`: Sequential counter pre-allocated locally in SQLite.