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

(-)a/admin/itemtypes.pl (-3 lines)
Lines 79-85 if ( $op eq 'add_form' ) { Link Here
79
    my $rentalcharge_daily  = $input->param('rentalcharge_daily');
79
    my $rentalcharge_daily  = $input->param('rentalcharge_daily');
80
    my $rentalcharge_hourly = $input->param('rentalcharge_hourly');
80
    my $rentalcharge_hourly = $input->param('rentalcharge_hourly');
81
    my $defaultreplacecost  = $input->param('defaultreplacecost');
81
    my $defaultreplacecost  = $input->param('defaultreplacecost');
82
    my $processfee          = $input->param('processfee');
83
    my $image               = $input->param('image') || q||;
82
    my $image               = $input->param('image') || q||;
84
    my @branches            = grep { $_ ne q{} } $input->multi_param('branches');
83
    my @branches            = grep { $_ ne q{} } $input->multi_param('branches');
85
84
Lines 108-114 if ( $op eq 'add_form' ) { Link Here
108
        $itemtype->rentalcharge_daily($rentalcharge_daily);
107
        $itemtype->rentalcharge_daily($rentalcharge_daily);
109
        $itemtype->rentalcharge_hourly($rentalcharge_hourly);
108
        $itemtype->rentalcharge_hourly($rentalcharge_hourly);
110
        $itemtype->defaultreplacecost($defaultreplacecost);
109
        $itemtype->defaultreplacecost($defaultreplacecost);
111
        $itemtype->processfee($processfee);
112
        $itemtype->notforloan($notforloan);
110
        $itemtype->notforloan($notforloan);
113
        $itemtype->imageurl($imageurl);
111
        $itemtype->imageurl($imageurl);
114
        $itemtype->summary($summary);
112
        $itemtype->summary($summary);
Lines 143-149 if ( $op eq 'add_form' ) { Link Here
143
                rentalcharge_daily           => $rentalcharge_daily,
141
                rentalcharge_daily           => $rentalcharge_daily,
144
                rentalcharge_hourly          => $rentalcharge_hourly,
142
                rentalcharge_hourly          => $rentalcharge_hourly,
145
                defaultreplacecost           => $defaultreplacecost,
143
                defaultreplacecost           => $defaultreplacecost,
146
                processfee                   => $processfee,
147
                notforloan                   => $notforloan,
144
                notforloan                   => $notforloan,
148
                imageurl                     => $imageurl,
145
                imageurl                     => $imageurl,
149
                summary                      => $summary,
146
                summary                      => $summary,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-8 lines)
Lines 306-315 Link Here
306
                        <label for="defaultreplacecost">Default replacement cost: </label>
306
                        <label for="defaultreplacecost">Default replacement cost: </label>
307
                        <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" min="0" />
307
                        <input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" min="0" />
308
                    </li>
308
                    </li>
309
                    <li>
310
                        <label for="processfee">Processing fee (when lost): </label>
311
                        <input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" min="0" />
312
                    </li>
313
                    <li>
309
                    <li>
314
                        <label for="checkinmsg">Checkin message: </label>
310
                        <label for="checkinmsg">Checkin message: </label>
315
                        <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg | html %]</textarea>
311
                        <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% itemtype.checkinmsg | html %]</textarea>
Lines 433-439 Link Here
433
                        <th>Daily rental charge</th>
429
                        <th>Daily rental charge</th>
434
                        <th>Hourly rental charge</th>
430
                        <th>Hourly rental charge</th>
435
                        <th>Default replacement cost</th>
431
                        <th>Default replacement cost</th>
436
                        <th>Processing fee (when lost)</th>
437
                        <th>Checkin message</th>
432
                        <th>Checkin message</th>
438
                        <th>Library limitations</th>
433
                        <th>Library limitations</th>
439
                        <th>Automatic check-in</th>
434
                        <th>Automatic check-in</th>
Lines 509-515 Link Here
509
                            </td>
504
                            </td>
510
505
511
                            <td>[% itemtype.defaultreplacecost | $Price %]</td>
506
                            <td>[% itemtype.defaultreplacecost | $Price %]</td>
512
                            <td>[% itemtype.processfee | $Price %]</td>
513
                            <td>[% itemtype.checkinmsg | html_line_break | $raw %]</td>
507
                            <td>[% itemtype.checkinmsg | html_line_break | $raw %]</td>
514
                            <td>
508
                            <td>
515
                                [% SET library_limits = itemtype.library_limits %]
509
                                [% SET library_limits = itemtype.library_limits %]
Lines 575-581 Link Here
575
                   rentalcharge: { number: true },
569
                   rentalcharge: { number: true },
576
                   rentalcharge_hourly: { number: true },
570
                   rentalcharge_hourly: { number: true },
577
                   defaultreplacecost: { number: true },
571
                   defaultreplacecost: { number: true },
578
                   processfee: { number: true }
579
               }
572
               }
580
           });
573
           });
581
           $("#itemtype").on("blur",function(){
574
           $("#itemtype").on("blur",function(){
582
- 

Return to bug 36506