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;
}
for my $grp (@$groups) {
return 1 if $self->is_group_descendant($grp, $pid);
}
+ return 1 if $self->is_renewal;
return 0;
}
}, {idlist => 1})->[0];
$self->push_events(OpenILS::Event->new(
- 'ITEM_DEPOSIT_PAID', payload => $deposit)) if $deposit;
+ 'ITEM_DEPOSIT_PAID', payload => $deposit)) if $deposit and not $self->is_renewal;
}
sub reshelve_copy {