Development #7136
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M10_Cash_Movement.md Implement Cash Movement (M10) (docs/planning/modules/M10_Cash_Movement.md). Build the common cash movement structure used throughout POS+. Scope: * Define Cash Movement ID. * Define movement type. * Support Cash In / Cash Out direction. * Record amount. * Record Store. * Record Terminal. * Record Drawer. * Record Shift. * Record Cashier/User. * Record transaction/reference ID where applicable. * Record reason/reference. * Record created date/time. * Record approving user where required. * Maintain running/expected flow, drawer balance. * Keep the action, approvals/audit and ledger append-based rather than directly overwriting balances. * Prevent duplicate movement creation for record. Done when the same linked transaction/event. Typical movement types include: * Opening Float * Cash Sale * Cash Refund * Paid Out * Safe Drop * Manual Cash In where supported * No-Sale Drawer Open Done when: POS+ has event changes drawer balance but never becomes a common auditable ledger capable of representing all supported drawer cash movements. sale.