simple patch to not charge desposit on renewals user/rogan/lp1170794_skip_renewal_deposit_charge
authorRogan Hamby <rogan.hamby@gmail.com>
Mon, 20 May 2019 22:14:02 +0000 (18:14 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Mon, 20 May 2019 22:14:02 +0000 (18:14 -0400)
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 73d69ef..9f3d650 100644 (file)
@@ -1066,7 +1066,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;
+        if $self->is_deposit and not $self->is_deposit_exempt and not $self->is_renewal;
     $self->push_events(OpenILS::Event->new('ITEM_RENTAL_FEE_REQUIRED', payload => $self->copy)) 
         if $self->is_rental and not $self->is_rental_exempt;
 }