Lines 156-162
elsif ($op eq 'add') {
Link Here
|
156 |
$issuelength = $issuelength eq q{} ? undef : $issuelength; |
156 |
$issuelength = $issuelength eq q{} ? undef : $issuelength; |
157 |
my $lengthunit = $input->param('lengthunit'); |
157 |
my $lengthunit = $input->param('lengthunit'); |
158 |
my $hardduedate = $input->param('hardduedate') || undef; |
158 |
my $hardduedate = $input->param('hardduedate') || undef; |
159 |
$hardduedate = eval { dt_from_string( $input->param('hardduedate') ) } if ( $hardduedate ); |
159 |
$hardduedate = eval { dt_from_string( scalar $input->param('hardduedate') ) } if ( $hardduedate ); |
160 |
$hardduedate = output_pref( { dt => $hardduedate, dateonly => 1, dateformat => 'iso' } ) if ( $hardduedate ); |
160 |
$hardduedate = output_pref( { dt => $hardduedate, dateonly => 1, dateformat => 'iso' } ) if ( $hardduedate ); |
161 |
my $hardduedatecompare = $input->param('hardduedatecompare'); |
161 |
my $hardduedatecompare = $input->param('hardduedatecompare'); |
162 |
my $rentaldiscount = $input->param('rentaldiscount'); |
162 |
my $rentaldiscount = $input->param('rentaldiscount'); |
Lines 164-169
elsif ($op eq 'add') {
Link Here
|
164 |
my $article_requests = $input->param('article_requests') || 'no'; |
164 |
my $article_requests = $input->param('article_requests') || 'no'; |
165 |
my $overduefinescap = $input->param('overduefinescap') || undef; |
165 |
my $overduefinescap = $input->param('overduefinescap') || undef; |
166 |
my $cap_fine_to_replacement_price = $input->param('cap_fine_to_replacement_price') eq 'on'; |
166 |
my $cap_fine_to_replacement_price = $input->param('cap_fine_to_replacement_price') eq 'on'; |
|
|
167 |
my $recall_due_date_interval = $input->param('recall_due_date_interval'); |
168 |
my $recall_overdue_fine = $input->param('recall_overdue_fine'); |
169 |
my $recall_shelf_time = $input->param('recall_shelf_time'); |
167 |
$debug and warn "Adding $br, $bor, $itemtype, $fine, $maxissueqty, $maxonsiteissueqty, $cap_fine_to_replacement_price"; |
170 |
$debug and warn "Adding $br, $bor, $itemtype, $fine, $maxissueqty, $maxonsiteissueqty, $cap_fine_to_replacement_price"; |
168 |
|
171 |
|
169 |
my $params = { |
172 |
my $params = { |
Lines 197-202
elsif ($op eq 'add') {
Link Here
|
197 |
overduefinescap => $overduefinescap, |
200 |
overduefinescap => $overduefinescap, |
198 |
cap_fine_to_replacement_price => $cap_fine_to_replacement_price, |
201 |
cap_fine_to_replacement_price => $cap_fine_to_replacement_price, |
199 |
article_requests => $article_requests, |
202 |
article_requests => $article_requests, |
|
|
203 |
recall_due_date_interval => $recall_due_date_interval, |
204 |
recall_overdue_fine => $recall_overdue_fine, |
205 |
recall_shelf_time => $recall_shelf_time, |
200 |
}; |
206 |
}; |
201 |
|
207 |
|
202 |
my $issuingrule = Koha::IssuingRules->find({categorycode => $bor, itemtype => $itemtype, branchcode => $br}); |
208 |
my $issuingrule = Koha::IssuingRules->find({categorycode => $bor, itemtype => $itemtype, branchcode => $br}); |