From b3de8738b7f8db23c99b588a11da2225bd67106c 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 Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- 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 9a1bdae225..c93ee3d302 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 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.39.5