From: phasefx Date: Tue, 27 Jul 2010 22:33:10 +0000 (+0000) Subject: since we're re-circulating to previous patrons sometimes as a poor man's check-in... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e6136d112eeaca01ca67b15741015b699b9b59b1;p=evergreen%2Fbjwebb.git since we're re-circulating to previous patrons sometimes as a poor man's check-in undo, give us the power to turn off these fee-generating features. berick++ git-svn-id: svn://svn.open-ils.org/ILS/trunk@17046 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 2a9c5859a..8cb1dd16f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -518,6 +518,8 @@ my @AUTOLOAD_FIELDS = qw/ return_patron claims_never_checked_out skip_permit_key + skip_deposit_fee + skip_rental_fee /; @@ -1432,6 +1434,9 @@ sub apply_deposit_fee { ($self->is_deposit and not $self->is_deposit_exempt) or ($self->is_rental and not $self->is_rental_exempt); + return if $self->is_deposit and $self->skip_deposit_fee; + return if $self->is_rental and $self->skip_rental_fee; + my $bill = Fieldmapper::money::billing->new; my $amount = $copy->deposit_amount; my $billing_type;