Bug 28854: (follow-up) Use Koha::Item->itemtype introduced with bug 20469

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-06-17 12:24:09 +01:00 committed by Tomas Cohen Arazi
parent cc23b3b918
commit fd7e417189
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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;