From 9f4570d4b8ee21df48a564f5651a5c24e0cae1ac Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 22 Mar 2019 15:49:13 +0000 Subject: [PATCH] Bug 22564: Remove references to 'Rep' accounttype Signed-off-by: Martin Renvoize --- C4/Circulation.pm | 2 +- Koha/Account.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 2196839426..1319631a9f 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2380,7 +2380,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 ed127d1d4f..9d66e70f7c 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 ); } -- 2.20.1