prevent charging on renewals user/rogan/lp1170794_deposits_and_renewals_oh_my
authorRogan Hamby <rogan.hamby@gmail.com>
Mon, 24 Feb 2020 17:27:59 +0000 (12:27 -0500)
committerRogan Hamby <rogan.hamby@gmail.com>
Mon, 24 Feb 2020 17:28:41 +0000 (12:28 -0500)
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 046ff05..2ff4d2f 100644 (file)
@@ -1071,7 +1071,7 @@ sub do_permit {
 sub check_item_deposit_events {
     my $self = shift;
     $self->push_events(OpenILS::Event->new('ITEM_DEPOSIT_REQUIRED', payload => $self->copy)) 
-        if $self->is_deposit and not $self->is_deposit_exempt and not $self->is_renewal;
+        if $self->is_deposit and not $self->is_deposit_exempt;
     $self->push_events(OpenILS::Event->new('ITEM_RENTAL_FEE_REQUIRED', payload => $self->copy)) 
         if $self->is_rental and not $self->is_rental_exempt;
 }
@@ -3038,7 +3038,7 @@ sub check_circ_deposit {
         }, {idlist => 1})->[0];
 
     $self->push_events(OpenILS::Event->new(
-        'ITEM_DEPOSIT_PAID', payload => $deposit)) if $deposit and not $self->is_renewal;
+        'ITEM_DEPOSIT_PAID', payload => $deposit)) if $deposit;
 }
 
 sub reshelve_copy {