From 4ff6ec27c7ff28c55428a410e5875d6866371c1c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 17 Jun 2022 12:24:09 +0100 Subject: [PATCH] Bug 28854: (follow-up) Use Koha::Item->itemtype introduced with bug 20469 Signed-off-by: Katrin Fischer --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 84ebbcd225..e5b7c441d8 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -71,7 +71,7 @@ sub chargelostitem { my $dbh = C4::Context->dbh(); my ($borrowernumber, $itemnumber, $amount, $description) = @_; my $item = Koha::Items->find($itemnumber); - my $itype = Koha::ItemTypes->find({ itemtype => $item->effective_itemtype() }); + my $itype = $item->itemtype; my $replacementprice = $amount; my $defaultreplacecost = $itype->defaultreplacecost; my $processfee = $itype->processfee; -- 2.30.2