Project

General

Profile

Development #7217

Updated by Kyle Chong 3 months ago

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 DB 
 >  
 > Training Mode 
 >       ↓ 
 > Training Master DB 
 > Training Transaction DB 

 Scope: 

 * (M17) (docs/planning/modules/M17_Training_Mode.md). Build training mode in both Cashier modules must use projects using the active isolated 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 pair. Follow M17 business date, simulated external effects 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. 

 rollback rules. Done when: Existing POS+ functions automatically operate on Training data when Training Mode is active and Production training cannot change live data when Production Mode is active. or real services.

Back