Project

General

Profile

Development #7150

Updated by Kyle Chong 3 months ago

Refer to: 

 * docs/planning/modules/M11_End_Of_Shift.md 
 * docs/planning/modules/M01_Login_Auth.md 

 Integrate M11 with the POS+ login flow. 

 Scope: 

 * After successful M01 authentication, check the user's current End of Shift (M11) (docs/planning/modules/M11_EOS.md). Build shift status. 
 * Detect active shift on the current terminal. 
 * Detect active shift belonging to another terminal where applicable. 
 * Detect stale/unclosed previous shift. 
 * Determine whether the current user may open a new shift. 
 * Route user to Shift Opening cash count and close: blind count, variance, approval, report and immutable close record. Done when a cashier has no active shift. 
 * Allow authorised non-sales functions without forcing every user to open a cashier shift. 
 * Do not duplicate authentication logic inside M11. 

 Important behaviour: 

 Login Success + Active Shift → Enter POS Sales 

 Login Success + No Active Shift → Sales Blocked → Open Shift / Allowed Non-Sales Functions 

 Done when: Every authenticated POS user has a clearly resolved shift state before entering normal cashier operations. all linked shift-close scenarios pass.

Back