]> git.koha-community.org Git - koha.git/commit
Bug 29002: Prevent booking a checked out item
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 10 Oct 2023 16:09:38 +0000 (17:09 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Nov 2023 15:04:25 +0000 (12:04 -0300)
commit131a87567bcf7b649f2ca2eb727645c8550443b1
treee799c50a9a38fd61fafb60f56cbe62df9b258b39
parent14afa1318cef0abb7038705bf81960aa64dc389e
Bug 29002: Prevent booking a checked out item

This patch updates the bookings logic to prevent placing a booking
on an item that is checked out to start prior to it's due date.

Test plan
1) Follow the previous test plans
2) Add a checkout of an item
3) Attempt to place a booking and note that the item is not available to
   be booked until after it's due date.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio.pm
Koha/Item.pm
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js