1.1 KiB
1.1 KiB
Phase 3: Advanced POS (Offline Focused)
Technical Architecture
- Local Database: IndexedDB (via Dexie.js)
- Sync Strategy: Background Workers + Manual Sync Dashboard
- Data Scope: Products, Customers, POS Sessions (Transactions)
Todo List
- Infrastructure Setup
- Install
dexiepackage - Create
resources/js/db.jsfor IndexedDB schema - Create
resources/js/composables/useOfflineStore.js
- Install
- Data Splicing & Local Storage
- Implement
syncProductsto pull from server and save to IndexedDB - Implement
syncCustomersto save frequently used customer data - Implement
syncSettings(tax, discounts, etc.)
- Implement
- Offline Transaction Entry
- Update
PosMain.vueto fallback to local DB when offline - implement
storePendingTransactionin IndexedDB
- Update
- Background Sync Logic
- Implement periodic background push for local transactions
- Create Conflict Resolution handler
- UI Features
- Offline status indicator in POS
- Sync Dashboard component