Actions
Development #7217
closedFeature #7213: Training Mode (M17)
Route all POS operations to the active database set
Status:
Closed
Assignee:
Start date:
01/10/2026
Due date:
01/10/2026
% Done:
100%
Estimated time:
Complete Date:
01/10/2026
Description
Subject: Route POS operations to active database mode
Refer to:
- docs/planning/modules/M17_Training_Mode.md
- relevant POS+ architecture/database MD
Ensure all existing POS+ functions operate against whichever database set is currently active.
Production Mode
↓
Production Master DB
Production Transaction DBTraining Mode
↓
Training Master DB
Training Transaction DB
Scope:
- Cashier modules must use the active database context rather than hardcoded Production database connections.
- When Training Mode is active, all reads/writes must use the Training database set.
- This includes sales, payment records, void, suspend/recall, refund, cash movement, shift, EOD, receipt/report data and other POS transactions.
- Existing POS business logic should be reused.
- Do not separately implement “Training Sales”, “Training Refund”, “Training EOD”, etc.
- Switching back to Production must restore all operations to the Production database set.
Done when: Existing POS+ functions automatically operate on Training data when Training Mode is active and Production data when Production Mode is active.
Actions