https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40808 --- Comment #8 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 186443 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186443&action=edit Bug 40808: Add REST API unit tests for holds debits embedding Adds comprehensive API unit tests for the debits embedding functionality in the holds REST API endpoints. The tests verify: 1. GET /holds without embedding - should not include debits field 2. GET /holds with debits embedding - should include linked charges 3. GET /holds with empty debits - should return empty array when no fees linked Note: Currently the API embedding tests fail with 500 errors due to issues in the REST API framework's automatic embedding mechanism, though the underlying Hold.debits() method and to_api() functionality works correctly when tested directly. Also improves the Hold.debits() method to properly filter for debit-only account lines (excluding credits). -- You are receiving this mail because: You are watching all bug changes.