From: Martin Renvoize Date: Fri, 22 Mar 2019 15:49:13 +0000 (+0000) Subject: Bug 22564: Remove references to 'Rep' accounttype X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=b3de8738b7f8db23c99b588a11da2225bd67106c Bug 22564: Remove references to 'Rep' accounttype Signed-off-by: Martin Renvoize Signed-off-by: Josef Moravec Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 9a1bdae..c93ee3d 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2384,7 +2384,7 @@ sub _FixAccountForLostAndReturned { my $accountlines = Koha::Account::Lines->search( { itemnumber => $itemnumber, - accounttype => { -in => [ 'L', 'Rep', 'W' ] }, + accounttype => { -in => [ 'L', 'W' ] }, }, { order_by => { -desc => [ 'date', 'accountlines_id' ] } diff --git a/Koha/Account.pm b/Koha/Account.pm index ed127d1..9d66e70 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -108,7 +108,7 @@ sub pay { $fine->amountoutstanding($new_amountoutstanding)->store(); $balance_remaining = $balance_remaining - $amount_to_pay; - if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) ) + if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'L' ) ) { C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ); }