Development #7215
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/modules/M17_Training_Mode.md Implement the function for switching Cashier between Production Training Mode and Training Mode. Scope: * Allow authorised user to enter Training Mode. * Do (M17) (docs/planning/modules/M17_Training_Mode.md). The yellow theme/watermark idea is not allow mode switching while there is an active transaction. * When entering Training Mode: * Prepare/load a valid training-mode POC by itself. Build a temporary visual indicator only after the Training database set. * Switch Cashier database connections to the Training database set. * Set the Training Business Date. * When exiting Training Mode: * Close Training database connections. * Restore the Production database connections. * Restore the Production Business Date/context. * Do not require separate Training versions of existing POS modules. Done when: Cashier database-pair POC proves routing. Verify users can safely switch between Production and Training database contexts. never mistake training receipt for live receipt.