https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42962
Bug ID: 42962
Summary: Expose cash register outstanding accountlines via REST
API
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.
The staff interface pages pos/register.pl and pos/registers.pl currently fetch
a cash register's outstanding (uncollected) accountlines via the Perl method
Koha::Cash::Register->outstanding_accountlines(). There is no REST equivalent,
which blocks building a Vue-based register view.
This patch should add a way to retrieve a register's outstanding accountlines
via the API, either as a filter/embed on the existing accountlines resource
(e.g. a cash_register_id query parameter) or as a dedicated endpoint such as
GET /api/v1/cash_registers/{cash_register_id}/accountlines. Prefer reusing the
existing accountlines representation rather than introducing a parallel schema.
Test plan:
1. Review the chosen approach against the existing accountlines REST resource
for consistency.
2. Confirm the new filter/endpoint returns only outstanding accountlines for
the given register.
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/