|
Lines 99-105
if ( $op eq 'add_form' ) {
Link Here
|
| 99 |
my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0; |
99 |
my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0; |
| 100 |
my $automatic_checkin = $input->param('automatic_checkin') // 0; |
100 |
my $automatic_checkin = $input->param('automatic_checkin') // 0; |
| 101 |
my $bookable = $input->param('bookable') // 0; |
101 |
my $bookable = $input->param('bookable') // 0; |
| 102 |
my $checkprevcheckout = $input->param('checkprevcheckout'); |
102 |
my $checkprevcheckout = $input->param('checkprevcheckout') // 'inherit'; |
| 103 |
|
103 |
|
| 104 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
104 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
| 105 |
$itemtype->description($description); |
105 |
$itemtype->description($description); |
|
Lines 121-130
if ( $op eq 'add_form' ) {
Link Here
|
| 121 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
121 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
| 122 |
$itemtype->automatic_checkin($automatic_checkin); |
122 |
$itemtype->automatic_checkin($automatic_checkin); |
| 123 |
$itemtype->bookable($bookable); |
123 |
$itemtype->bookable($bookable); |
| 124 |
|
124 |
$itemtype->checkprevcheckout($checkprevcheckout); |
| 125 |
if ( defined $checkprevcheckout ) { |
|
|
| 126 |
$itemtype->checkprevcheckout($checkprevcheckout); |
| 127 |
} |
| 128 |
|
125 |
|
| 129 |
eval { |
126 |
eval { |
| 130 |
$itemtype->store; |
127 |
$itemtype->store; |