From b312150d2642559a810c09bafceeb2587aed9909 Mon Sep 17 00:00:00 2001 From: Marion Durand Date: Thu, 17 Oct 2024 13:49:02 +0200 Subject: [PATCH] Bug 40995: SIP add a message at checkin for document with hold Add a screen message (AF) when a document with a hold is checked in. Only show when the parameter show_checkin_message is set to 1. To test: 1- Checkout a document to a patron A 2- Place a hold for patron B for this document 3- Do a checking using SIP 4- Check that the screen message (AF field) contain a text warning that the item is on hold, and that the return has been correctly done --- C4/SIP/ILS.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/SIP/ILS.pm b/C4/SIP/ILS.pm index 1dd3453bd2..ff6fd76c44 100644 --- a/C4/SIP/ILS.pm +++ b/C4/SIP/ILS.pm @@ -308,6 +308,10 @@ sub checkin { $permanent_location = Koha::Libraries->find( $item->{permanent_location} )->branchname; } $message .= "Item checked-in: $permanent_location - $item->{location}."; + if ( $data->{messages}->{ResFound} ) { + $message .= " - Item reserved by another patron"; + } + } # Check for overdue fines to display -- 2.43.0