https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40445
--- Comment #112 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 193125 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193125&action=edit Bug 40445: Implement two-phase cashup workflow Introduces two-phase cashup system allowing staff to start a cashup session, remove cash for counting, and complete later with reconciliation. Key features: - start_cashup(): Creates CASHUP_START action for counting session - cashup_in_progress(): Checks if session is active - Enhanced add_cashup(): Supports both legacy and two-phase modes - Improved session boundary calculation handles mixed workflows - Reconciliation lines backdated appropriately per mode Single register interface: - Dynamic toolbar shows "Start cashup" vs "Complete cashup" - Status indicator when cashup in progress - Dual-workflow modal with quick and two-phase options Registers page enhancements: - Checkbox selection for multiple registers - "Select all" functionality with indeterminate state - "Cashup selected" button with workflow modal - Both workflows support single or multiple registers - Comprehensive error handling for bulk operations Test plan: 1. Apply patch and run prove t/db_dependent/Koha/Cash/Register.t 2. Single register two-phase: - Start cashup on register - Verify status indicator appears - Add more transactions - Complete cashup with actual amount - Verify session boundaries correct 3. Single register quick cashup: - Use "Quick cashup" option - Verify immediate completion 4. Registers page multiple selection: - Select multiple registers with checkboxes - Click "Cashup selected" - Choose "Start cashup" - verify all start successfully - Complete each individually 5. Registers page quick cashup: - Select multiple registers - Choose "Quick cashup" with reconciliation amounts - Verify all complete immediately 6. Mixed workflows: - Use both quick and two-phase on same register over time - Verify session boundaries calculate correctly Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Jackie Usher <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
