https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42964
Bug ID: 42964
Summary: Expose sellable debit types scoped by library 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.
pos/pay.pl currently builds the list of items available for sale by calling
Koha::Account::DebitTypes->search_with_library_limits() directly in Perl,
filtered to types flagged can_be_sold. A Vue-based payment screen needs this
available via the API.
This patch should confirm whether the account debit types REST endpoint already
supports filtering by can_be_sold and by library, and extend it if not.
Test plan:
1. Query the debit types endpoint filtered by can_be_sold=1 and confirm results
match Koha::Account::DebitTypes->search_with_library_limits() for a given
library.
2. Add/extend unit tests under t/db_dependent/api/v1/.
--
You are receiving this mail because:
You are the assignee for the bug.
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/