Project

General

Profile

Development #7152

Updated by Kyle Chong 3 months ago

Refer to: 

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

 Implement a common shift validation used before starting or completing POS sales. 

 Scope: 

 * Block creation End of a new sales cart if no valid active shift exists. 
 * Block payment completion if Shift (M11) (docs/planning/modules/M11_EOS.md). Create repeatable tests with setup data, steps, expected result and attached evidence. Include the shift is no longer active. 
 * Associate every completed transaction with Shift ID. 
 * Associate Store/Terminal/Cashier. 
 * Prevent transactions from being posted into a closed shift. 
 * Validate again at critical transaction points instead of relying only on UI visibility. 
 * Provide clear cashier message stated error/recovery cases. Done when sales the acceptance behaviour passes and failures are blocked. 

 The rule should be enforced in service/business logic, not only by disabling the Sell button. 

 Done when: No normal sales transaction can be completed outside a valid active shift. recorded.

Back