Lines 177-183
elsif ($op eq 'add') {
Link Here
|
177 |
$issuelength = $issuelength eq q{} ? undef : $issuelength; |
177 |
$issuelength = $issuelength eq q{} ? undef : $issuelength; |
178 |
my $lengthunit = $input->param('lengthunit'); |
178 |
my $lengthunit = $input->param('lengthunit'); |
179 |
my $hardduedate = $input->param('hardduedate') || undef; |
179 |
my $hardduedate = $input->param('hardduedate') || undef; |
180 |
$hardduedate = eval { dt_from_string( $input->param('hardduedate') ) } if ( $hardduedate ); |
180 |
$hardduedate = eval { dt_from_string( scalar $input->param('hardduedate') ) } if ( $hardduedate ); |
181 |
$hardduedate = output_pref( { dt => $hardduedate, dateonly => 1, dateformat => 'iso' } ) if ( $hardduedate ); |
181 |
$hardduedate = output_pref( { dt => $hardduedate, dateonly => 1, dateformat => 'iso' } ) if ( $hardduedate ); |
182 |
my $hardduedatecompare = $input->param('hardduedatecompare'); |
182 |
my $hardduedatecompare = $input->param('hardduedatecompare'); |
183 |
my $rentaldiscount = $input->param('rentaldiscount'); |
183 |
my $rentaldiscount = $input->param('rentaldiscount'); |
Lines 185-190
elsif ($op eq 'add') {
Link Here
|
185 |
my $article_requests = $input->param('article_requests') || 'no'; |
185 |
my $article_requests = $input->param('article_requests') || 'no'; |
186 |
my $overduefinescap = $input->param('overduefinescap') || undef; |
186 |
my $overduefinescap = $input->param('overduefinescap') || undef; |
187 |
my $cap_fine_to_replacement_price = $input->param('cap_fine_to_replacement_price') eq 'on'; |
187 |
my $cap_fine_to_replacement_price = $input->param('cap_fine_to_replacement_price') eq 'on'; |
|
|
188 |
my $recall_due_date_interval = $input->param('recall_due_date_interval'); |
189 |
my $recall_overdue_fine = $input->param('recall_overdue_fine'); |
190 |
my $recall_shelf_time = $input->param('recall_shelf_time'); |
188 |
$debug and warn "Adding $br, $bor, $itemtype, $fine, $maxissueqty, $maxonsiteissueqty, $cap_fine_to_replacement_price"; |
191 |
$debug and warn "Adding $br, $bor, $itemtype, $fine, $maxissueqty, $maxonsiteissueqty, $cap_fine_to_replacement_price"; |
189 |
|
192 |
|
190 |
my $params = { |
193 |
my $params = { |
Lines 219-224
elsif ($op eq 'add') {
Link Here
|
219 |
overduefinescap => $overduefinescap, |
222 |
overduefinescap => $overduefinescap, |
220 |
cap_fine_to_replacement_price => $cap_fine_to_replacement_price, |
223 |
cap_fine_to_replacement_price => $cap_fine_to_replacement_price, |
221 |
article_requests => $article_requests, |
224 |
article_requests => $article_requests, |
|
|
225 |
recall_due_date_interval => $recall_due_date_interval, |
226 |
recall_overdue_fine => $recall_overdue_fine, |
227 |
recall_shelf_time => $recall_shelf_time, |
222 |
}; |
228 |
}; |
223 |
|
229 |
|
224 |
my $issuingrule = Koha::IssuingRules->find({categorycode => $bor, itemtype => $itemtype, branchcode => $br}); |
230 |
my $issuingrule = Koha::IssuingRules->find({categorycode => $bor, itemtype => $itemtype, branchcode => $br}); |