JBAS-2297 SIP LOST fee type repairs
authorBill Erickson <berickxx@gmail.com>
Wed, 12 Jun 2019 15:11:04 +0000 (15:11 +0000)
committerBill Erickson <berickxx@gmail.com>
Wed, 19 Jun 2019 16:33:49 +0000 (12:33 -0400)
Ensure a fee type is reported as LOST for "Lost Materials" only.  E.g.
avoid treating "lost part" as a LOST item.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm

index 6fa4029..15b6c25 100644 (file)
@@ -881,7 +881,7 @@ sub fine_items {
 
         my $fee_type;
 
-        if ($xact->last_billing_type =~ /^Lost/) {
+        if ($xact->last_billing_type eq 'Lost Materials') {
             $fee_type = 'LOST';
         } elsif ($xact->last_billing_type =~ /^Overdue/) {
             $fee_type = 'FINE';