From: Rogan Hamby Date: Mon, 24 Feb 2020 17:27:59 +0000 (-0500) Subject: prevent charging on renewals X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=051fd7ecbf63e84df59b3d7a9a5809b22ca58f3a;p=working%2FEvergreen.git prevent charging on renewals Signed-off-by: Rogan Hamby --- 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 046ff057e6..2ff4d2fdb6 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -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 {