From 48251a86ff30fcfd0fa152e33fc17fcfc045695a 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 Signed-off-by: Josef Moravec --- 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 7ab1db7e82..dd5bca566e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2382,7 +2382,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 ddd60127ef..3ef14424cd 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -106,7 +106,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.11.0