LP#1613374 - Add 'Canceled Transit' to non-'BAD' copy statuses.
authorChris Sharp <csharp@georgialibraries.org>
Tue, 23 Aug 2016 13:32:59 +0000 (09:32 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 24 Aug 2016 22:05:40 +0000 (18:05 -0400)
During checkin, Circulate.pm checks the copy status and if it
isn't listed as an okay status, the event COPY_BAD_STATUS is
returned, which requires an override.  This change makes copies
in 'Canceled Transit' status check in without an alert.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 6ce9eb8..dcef1d2 100644 (file)
@@ -3530,6 +3530,7 @@ sub check_checkin_copy_status {
             $status == OILS_COPY_STATUS_IN_TRANSIT  ||
             $status == OILS_COPY_STATUS_CATALOGING  ||
             $status == OILS_COPY_STATUS_ON_RESV_SHELF  ||
+            $status == OILS_COPY_STATUS_CANCELED_TRANSIT ||
             $status == OILS_COPY_STATUS_RESHELVING );
 
    return OpenILS::Event->new('COPY_STATUS_LOST', payload => $copy )