https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42963 Bug ID: 42963 Summary: Add POST endpoint for cash register cashups Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Target Milestone: --- This is part of the Point of Sale to Vue migration tracked under bug 42959. GET /api/v1/cash_registers/{cash_register_id}/cashups already exists but there is no way to record a cashup via the API. The staff interface pages pos/register.pl and pos/registers.pl currently call Koha::Cash::Register->add_cashup() directly from Perl, including a bulk cashup action across multiple registers. This patch should add POST /api/v1/cash_registers/{cash_register_id}/cashups to record a single cashup. It should also settle, as part of the design discussion, whether bulk cashup (cashing up several registers at once) is best modelled as repeated client-side calls to this endpoint or as a genuine batch endpoint. Test plan: 1. Perform a cashup via the new endpoint and confirm it matches the result of the existing Koha::Cash::Register->add_cashup() call. 2. Confirm permissions match the existing cash_management cashup requirement. 3. Add unit tests under t/db_dependent/api/v1/. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.