Bug 30118: Make holds_block_checkin in SIP behave like in Koha interface.
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 17 Mar 2021 13:14:25 +0000 (14:14 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Apr 2022 13:49:18 +0000 (15:49 +0200)
commit6a76843d58bfc1db983fb08588c0db9be8534d6f
tree7f686dcc319d5c3e7b6baca261a7aceebc42b5d3
parentaae06747018bcfcd313fb5af77a456060f5d8814
Bug 30118: Make holds_block_checkin in SIP behave like in Koha interface.

In koha interface, a warning is displayed when an item on hold is returned
only if the return is for this specific item.

This patch does the same in SIP: the return is blocked when holds_block_checkin
is enabled and there is a hold on a specific item and this is the very item
being returned.

Test plan:

The following behavior is expected in SIP:

 - An item is returned, and there is a reservation on record-level: block
 - An item is returned, and there is a reservation on this very item: block
 - An item is returned, and there is a reservation on another item: allow

Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/ILS/Transaction/Checkin.pm