[Bug 44385] New: Add renewability, account_lines and return_claim embeds to the checkouts endpoints
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44385 Bug ID: 44385 Summary: Add renewability, account_lines and return_claim embeds to the checkouts endpoints 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: tomascohen@gmail.com QA Contact: tomascohen@gmail.com CC: tomascohen@gmail.com Blocks: 42959 Target Milestone: --- The staff checkouts table (svc/checkouts) shows, per checkout, whether it can be renewed, its rental charge and overdue fine, and its return claim. GET /patrons/{patron_id}/checkouts and GET /checkouts can't provide them in one request: renewability is only available per checkout (GET /checkouts/{checkout_id}/allows_renewal). This bug adds embeds to both lists: * renewability: the allows_renewal object (allows_renewal, error, max_renewals, current_renewals, unseen_renewals) * account_lines: the debits of the checkout (rental charge, overdue fine) * return_claim: the return claim of the checkout backed by Koha::Checkout accessors with same-named DBIC relationships, so they can be prefetched. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42959 [Bug 42959] Migrate staff interface functionality from CGI controller + Template Toolkit to REST API + Vue.js -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44385 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |tomascohen@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org