my $itemtype = Koha::ItemTypes->find($itemtype_code);
my $description = $input->param('description');
my $rentalcharge = $input->param('rentalcharge');
- my $rental_charge_daily = $input->param('rental_charge_daily');
+ my $rentalcharge_daily = $input->param('rentalcharge_daily');
+ my $rentalcharge_hourly = $input->param('rentalcharge_hourly');
my $defaultreplacecost = $input->param('defaultreplacecost');
my $processfee = $input->param('processfee');
my $image = $input->param('image') || q||;
if ( $itemtype and $is_a_modif ) { # it's a modification
$itemtype->description($description);
$itemtype->rentalcharge($rentalcharge);
- $itemtype->rental_charge_daily($rental_charge_daily);
+ $itemtype->rentalcharge_daily($rentalcharge_daily);
+ $itemtype->rentalcharge_hourly($rentalcharge_hourly);
$itemtype->defaultreplacecost($defaultreplacecost);
$itemtype->processfee($processfee);
$itemtype->notforloan($notforloan);
itemtype => $itemtype_code,
description => $description,
rentalcharge => $rentalcharge,
- rental_charge_daily => $rental_charge_daily,
+ rentalcharge_daily => $rentalcharge_daily,
+ rentalcharge_hourly => $rentalcharge_hourly,
defaultreplacecost => $defaultreplacecost,
processfee => $processfee,
notforloan => $notforloan,