Lines 112-117
if ( $op eq 'add_form' ) {
Link Here
|
112 |
my $searchcategory = $input->param('searchcategory'); |
112 |
my $searchcategory = $input->param('searchcategory'); |
113 |
my $rentalcharge_daily_calendar = $input->param('rentalcharge_daily_calendar') // 0; |
113 |
my $rentalcharge_daily_calendar = $input->param('rentalcharge_daily_calendar') // 0; |
114 |
my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0; |
114 |
my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0; |
|
|
115 |
my $automatic_checkin = $input->param('automatic_checkin') // 0; |
115 |
|
116 |
|
116 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
117 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
117 |
$itemtype->description($description); |
118 |
$itemtype->description($description); |
Lines 131-136
if ( $op eq 'add_form' ) {
Link Here
|
131 |
$itemtype->searchcategory($searchcategory); |
132 |
$itemtype->searchcategory($searchcategory); |
132 |
$itemtype->rentalcharge_daily_calendar($rentalcharge_daily_calendar); |
133 |
$itemtype->rentalcharge_daily_calendar($rentalcharge_daily_calendar); |
133 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
134 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
|
|
135 |
$itemtype->automatic_checkin($automatic_checkin); |
134 |
|
136 |
|
135 |
eval { |
137 |
eval { |
136 |
$itemtype->store; |
138 |
$itemtype->store; |
Lines 163-168
if ( $op eq 'add_form' ) {
Link Here
|
163 |
searchcategory => $searchcategory, |
165 |
searchcategory => $searchcategory, |
164 |
rentalcharge_daily_calendar => $rentalcharge_daily_calendar, |
166 |
rentalcharge_daily_calendar => $rentalcharge_daily_calendar, |
165 |
rentalcharge_hourly_calendar => $rentalcharge_hourly_calendar, |
167 |
rentalcharge_hourly_calendar => $rentalcharge_hourly_calendar, |
|
|
168 |
automatic_checkin => $automatic_checkin, |
166 |
} |
169 |
} |
167 |
); |
170 |
); |
168 |
eval { |
171 |
eval { |