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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
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/