Development #7149
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/modules/M11_End_Of_Shift.md * docs/planning/modules/M01_Login_Auth.md Implement the common shift model used to determine whether a user/terminal can perform POS operations. Scope: * Define End of Shift ID. * Store. * Terminal. * Cashier/User. * Drawer where applicable. * Shift open date/time. * Shift close date/time. * Opening float reference. * Shift status. * Opening user. * Closing user. * Current expected drawer balance/reference. * Support states such as: * * Not Open * * Active * * Closing * * Closed * Prevent invalid state transitions. * Ensure only one applicable active (M11) (docs/planning/modules/M11_EOS.md). Build shift exists for a cashier/terminal according to configured business rules. * Keep closed shift records cash count and close: blind count, variance, approval, report and immutable except through approved administrative correction. close record. Done when: POS+ has a consistent shift state that can be checked by M01, M03, M06 and M10. when all linked shift-close scenarios pass.