Lines 98-103
if ( $op eq 'add_form' ) {
Link Here
|
98 |
my $rentalcharge_daily_calendar = $input->param('rentalcharge_daily_calendar') // 0; |
98 |
my $rentalcharge_daily_calendar = $input->param('rentalcharge_daily_calendar') // 0; |
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 |
|
102 |
|
102 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
103 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
103 |
$itemtype->description($description); |
104 |
$itemtype->description($description); |
Lines 118-123
if ( $op eq 'add_form' ) {
Link Here
|
118 |
$itemtype->rentalcharge_daily_calendar($rentalcharge_daily_calendar); |
119 |
$itemtype->rentalcharge_daily_calendar($rentalcharge_daily_calendar); |
119 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
120 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
120 |
$itemtype->automatic_checkin($automatic_checkin); |
121 |
$itemtype->automatic_checkin($automatic_checkin); |
|
|
122 |
$itemtype->bookable($bookable); |
121 |
|
123 |
|
122 |
eval { |
124 |
eval { |
123 |
$itemtype->store; |
125 |
$itemtype->store; |
Lines 151-156
if ( $op eq 'add_form' ) {
Link Here
|
151 |
rentalcharge_daily_calendar => $rentalcharge_daily_calendar, |
153 |
rentalcharge_daily_calendar => $rentalcharge_daily_calendar, |
152 |
rentalcharge_hourly_calendar => $rentalcharge_hourly_calendar, |
154 |
rentalcharge_hourly_calendar => $rentalcharge_hourly_calendar, |
153 |
automatic_checkin => $automatic_checkin, |
155 |
automatic_checkin => $automatic_checkin, |
|
|
156 |
bookable => $bookable, |
154 |
} |
157 |
} |
155 |
); |
158 |
); |
156 |
eval { |
159 |
eval { |