ifixkart-admin/docs/billing/offline-pos.md
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

38 lines
1,022 B
Markdown

# 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.