From: blake <blake@mobiusconsortium.org>
Date: Thu, 30 Jun 2016 20:41:35 +0000 (-0500)
Subject: LP1496556 Claimed never checked out count not increased when applied to LOST circulation
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a3d27fe5b0d94d088373d54a766fa652fe298e8;p=evergreen%2Fmasslnc.git

LP1496556 Claimed never checked out count not increased when applied to LOST circulation

Bug within the Lost copy status checkin block. Needed to set the stop_fines

Signed-off-by: blake <blake@mobiusconsortium.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
---

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index befe1bcb75..6ce9eb88d1 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -2416,6 +2416,9 @@ sub do_checkin {
                     );
             }
 
+            # Set stop_fines when claimed never checked out
+            $self->circ->stop_fines( OILS_STOP_FINES_CLAIMS_NEVERCHECKEDOUT ) if( $self->claims_never_checked_out );
+
             # handle fines for this circ, including overdue gen if needed
             $self->handle_fines;
         }