View | Details | Raw Unified | Return to bug 24083
Collapse All | Expand All

(-)a/admin/smart-rules.pl (+2 lines)
Lines 260-265 elsif ($op eq 'add') { Link Here
260
    my $maxissueqty = strip_non_numeric( scalar $input->param('maxissueqty') );
260
    my $maxissueqty = strip_non_numeric( scalar $input->param('maxissueqty') );
261
    my $maxonsiteissueqty = strip_non_numeric( scalar $input->param('maxonsiteissueqty') );
261
    my $maxonsiteissueqty = strip_non_numeric( scalar $input->param('maxonsiteissueqty') );
262
    my $renewalsallowed  = $input->param('renewalsallowed');
262
    my $renewalsallowed  = $input->param('renewalsallowed');
263
    my $unseen_renewals_allowed  = $input->param('unseen_renewals_allowed');
263
    my $renewalperiod    = $input->param('renewalperiod');
264
    my $renewalperiod    = $input->param('renewalperiod');
264
    my $norenewalbefore  = $input->param('norenewalbefore');
265
    my $norenewalbefore  = $input->param('norenewalbefore');
265
    $norenewalbefore = '' if $norenewalbefore =~ /^\s*$/;
266
    $norenewalbefore = '' if $norenewalbefore =~ /^\s*$/;
Lines 307-312 elsif ($op eq 'add') { Link Here
307
        hardduedate                   => $hardduedate,
308
        hardduedate                   => $hardduedate,
308
        hardduedatecompare            => $hardduedatecompare,
309
        hardduedatecompare            => $hardduedatecompare,
309
        renewalsallowed               => $renewalsallowed,
310
        renewalsallowed               => $renewalsallowed,
311
        unseen_renewals_allowed       => $unseen_renewals_allowed,
310
        renewalperiod                 => $renewalperiod,
312
        renewalperiod                 => $renewalperiod,
311
        norenewalbefore               => $norenewalbefore,
313
        norenewalbefore               => $norenewalbefore,
312
        auto_renew                    => $auto_renew,
314
        auto_renew                    => $auto_renew,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +12 lines)
Lines 113-118 Link Here
113
                <th>Max. suspension duration (day)</th>
113
                <th>Max. suspension duration (day)</th>
114
                <th>Suspension charging interval</th>
114
                <th>Suspension charging interval</th>
115
                <th>Renewals allowed (count)</th>
115
                <th>Renewals allowed (count)</th>
116
                [% IF Koha.Preference('UnseenRenewals') %]
117
                <th>Unseen renewals allowed (count)</th>
118
                [% END %]
116
                <th>Renewal period</th>
119
                <th>Renewal period</th>
117
                <th>No renewal before</th>
120
                <th>No renewal before</th>
118
                <th>Automatic renewal</th>
121
                <th>Automatic renewal</th>
Lines 152-157 Link Here
152
                        [% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %]
155
                        [% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %]
153
                        [% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %]
156
                        [% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %]
154
                        [% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %]
157
                        [% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %]
158
                        [% SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %]
155
                        [% SET renewalperiod = all_rules.$c.$i.renewalperiod %]
159
                        [% SET renewalperiod = all_rules.$c.$i.renewalperiod %]
156
                        [% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %]
160
                        [% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %]
157
                        [% SET auto_renew = all_rules.$c.$i.auto_renew %]
161
                        [% SET auto_renew = all_rules.$c.$i.auto_renew %]
Lines 166-172 Link Here
166
                        [% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %]
170
                        [% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %]
167
                        [% SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %]
171
                        [% SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %]
168
172
169
                        [% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount || decreaseloanholds %]
173
                        [% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || unseenrenewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount || decreaseloanholds %]
170
                        [% IF show_rule %]
174
                        [% IF show_rule %]
171
                            [% SET row_count = row_count + 1 %]
175
                            [% SET row_count = row_count + 1 %]
172
                            <tr row_countd="row_[% row_count | html %]">
176
                            <tr row_countd="row_[% row_count | html %]">
Lines 261-266 Link Here
261
                                    <td>[% maxsuspensiondays | html %]</td>
265
                                    <td>[% maxsuspensiondays | html %]</td>
262
                                    <td>[% suspension_chargeperiod | html %]</td>
266
                                    <td>[% suspension_chargeperiod | html %]</td>
263
                                    <td>[% renewalsallowed | html %]</td>
267
                                    <td>[% renewalsallowed | html %]</td>
268
                                    [% IF Koha.Preference('UnseenRenewals') %]
269
                                        <td>[% unseenrenewalsallowed | html %]</td>
270
                                    [% END %]
264
                                    <td>[% renewalperiod | html %]</td>
271
                                    <td>[% renewalperiod | html %]</td>
265
                                    <td>[% norenewalbefore | html %]</td>
272
                                    <td>[% norenewalbefore | html %]</td>
266
                                    <td>
273
                                    <td>
Lines 410-415 Link Here
410
                    <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td>
417
                    <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td>
411
                    <td><input type="text" name="suspension_chargeperiod" id="suspension_chargeperiod" size="3" /> </td>
418
                    <td><input type="text" name="suspension_chargeperiod" id="suspension_chargeperiod" size="3" /> </td>
412
                    <td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td>
419
                    <td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td>
420
                    <td><input type="text" name="unseen_renewals_allowed" id="unseen_renewals_allowed" size="2" /></td>
413
                    <td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td>
421
                    <td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td>
414
                    <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td>
422
                    <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td>
415
                    <td>
423
                    <td>
Lines 480-485 Link Here
480
                      <th>Max. suspension duration (day)</th>
488
                      <th>Max. suspension duration (day)</th>
481
                      <th>Suspension charging interval</th>
489
                      <th>Suspension charging interval</th>
482
                      <th>Renewals allowed (count)</th>
490
                      <th>Renewals allowed (count)</th>
491
                      [% IF Koha.Preference('UnseenRenewals') %]
492
                      <th>Unseen renewals allowed (count)</th>
493
                      [% END %]
483
                      <th>Renewal period</th>
494
                      <th>Renewal period</th>
484
                      <th>No renewal before</th>
495
                      <th>No renewal before</th>
485
                      <th>Automatic renewal</th>
496
                      <th>Automatic renewal</th>
486
- 

Return to bug 24083