Bug 22076: Fix the same situation for lost items
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 9 Jan 2019 12:02:30 +0000 (07:02 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 12:08:18 +0000 (12:08 +0000)
Signed-off-by: Geeta Halley <ghalley@roundrocktexas.gov>
Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

C4/SIP/ILS.pm

index 1c68c4b..e915887 100644 (file)
@@ -223,6 +223,9 @@ sub checkin {
     } elsif( $data->{messages}->{withdrawn} && !$circ->ok ) {
             $circ->screen_msg("Item withdrawn, return not allowed");
             syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item withdrawn");
+    } elsif( $data->{messages}->{WasLost} && !$circ->ok ) {
+            $circ->screen_msg("Item lost, return not allowed");
+            syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item lost");
     } elsif( !$item->{patron} ) {
         if( $checked_in_ok ) { # Mark checkin ok although book not checked out
             $circ->ok( 1 );