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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
- 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.
_______________________________________________
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/