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

(-)a/admin/itemtypes.pl (-4 / +1 lines)
Lines 235-241 elsif ( $op eq 'delete_confirm' ) { Link Here
235
    $template->param(
235
    $template->param(
236
        itemtype        => $itemtype,
236
        itemtype        => $itemtype,
237
        description     => $data->{description},
237
        description     => $data->{description},
238
        rentalcharge    => sprintf( "%.2f", $data->{rentalcharge} ),
238
        rentalcharge    => $data->{rentalcharge},
239
        imageurl        => $data->{imageurl},
239
        imageurl        => $data->{imageurl},
240
        total           => $total
240
        total           => $total
241
    );
241
    );
Lines 261-269 if ( $op eq 'list' ) { Link Here
261
    my @loop;
261
    my @loop;
262
    foreach my $itemtype ( @{$results} ) {
262
    foreach my $itemtype ( @{$results} ) {
263
        $itemtype->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtype->{imageurl} );
263
        $itemtype->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtype->{imageurl} );
264
        $itemtype->{rentalcharge} = sprintf( '%.2f', $itemtype->{rentalcharge} );
265
        $itemtype->{defaultreplacecost} = sprintf( '%.2f', $itemtype->{defaultreplacecost} );
266
        $itemtype->{processfee} = sprintf( '%.2f', $itemtype->{processfee} );
267
        push( @loop, $itemtype );
264
        push( @loop, $itemtype );
268
    }
265
    }
269
266
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-6 / +6 lines)
Lines 1-4 Link Here
1
[% USE AuthorisedValues %]
1
[% USE AuthorisedValues %]
2
[% USE Price %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF ( add_form ) %]&rsaquo;
4
<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF ( add_form ) %]&rsaquo;
4
  [% IF ( itemtype ) %]
5
  [% IF ( itemtype ) %]
Lines 190-196 Item types administration Link Here
190
      </li>
191
      </li>
191
      <li>
192
      <li>
192
          <label for="rentalcharge">Rental charge: </label>
193
          <label for="rentalcharge">Rental charge: </label>
193
		  <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
194
      <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
194
      </li>
195
      </li>
195
      <li>
196
      <li>
196
          <label for="defaultreplacecost">Default replacement cost: </label>
197
          <label for="defaultreplacecost">Default replacement cost: </label>
Lines 263-269 Item types administration Link Here
263
264
264
	<tr><th scope="row">Description</th><td>[% description %]</td></tr>
265
	<tr><th scope="row">Description</th><td>[% description %]</td></tr>
265
	<tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
266
	<tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
266
<tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
267
<tr><th scope="row">Rental charge</th><td>[% Pricerentalcharge | $Price %]</td></tr></table>
267
		<form action="[% script_name %]" method="post">
268
		<form action="[% script_name %]" method="post">
268
		<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
269
		<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
269
		</form>
270
		</form>
Lines 303-313 Item types administration Link Here
303
    <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
304
    <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
304
    <td>
305
    <td>
305
    [% UNLESS ( loo.notforloan ) %]
306
    [% UNLESS ( loo.notforloan ) %]
306
      [% loo.rentalcharge %]
307
      [% loo.rentalcharge | $Price %]
307
    [% END %]
308
    [% END %]
308
    </td>
309
    </td>
309
    <td>[% loo.defaultreplacecost %]</td>
310
    <td>[% loo.defaultreplacecost | $Price %]</td>
310
    <td>[% loo.processfee %]</td>
311
    <td>[% loo.processfee | $Price %]</td>
311
    <td>[% loo.checkinmsg | html_line_break %]</td>
312
    <td>[% loo.checkinmsg | html_line_break %]</td>
312
    <td>
313
    <td>
313
      <a href="[% loo.script_name %]?op=add_form&amp;itemtype=[% loo.itemtype |html %]">Edit</a>
314
      <a href="[% loo.script_name %]?op=add_form&amp;itemtype=[% loo.itemtype |html %]">Edit</a>
314
- 

Return to bug 12768