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: 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. 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.