https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41886 Bug ID: 41886 Summary: Biblio::check_booking counts checkouts on non-bookable items causing false clashes Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: paul.derscheid@lmscloud.de QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com - Biblio::check_booking uses $self->current_checkouts to count checked-out items overlapping with a booking period - This counts checkouts on ALL items for the biblio, including non-bookable ones (e.g. items with an excluded item type) - When only a subset of items are bookable, checkouts on non-bookable siblings incorrectly reduce the available pool, producing false clashes - The integer-based counting ($booked_count) can also double-count an item that has both an active booking and an active checkout, further inflating the unavailable count Steps to reproduce: - Have a biblio with multiple items where only some are bookable - Check out one or more of the non-bookable items - Create a booking on one of the bookable items - Clash is incorrectly detected even though all bookable items are available -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.