From 4aee6ae6da2d6fd6ea2b7d6fee67162a923a0e5f Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
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 <katrin.fischer@bsz-bw.de>
---
 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.20.1