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

(-)a/admin/itemtypes.pl (-4 / +1 lines)
Lines 232-238 elsif ( $op eq 'delete_confirm' ) { Link Here
232
    $template->param(
232
    $template->param(
233
        itemtype        => $itemtype,
233
        itemtype        => $itemtype,
234
        description     => $data->{description},
234
        description     => $data->{description},
235
        rentalcharge    => sprintf( "%.2f", $data->{rentalcharge} ),
235
        rentalcharge    => $data->{rentalcharge},
236
        imageurl        => $data->{imageurl},
236
        imageurl        => $data->{imageurl},
237
        total           => $total
237
        total           => $total
238
    );
238
    );
Lines 257-265 else { # DEFAULT Link Here
257
    my @loop;
257
    my @loop;
258
    foreach my $itemtype ( @{$results} ) {
258
    foreach my $itemtype ( @{$results} ) {
259
        $itemtype->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtype->{imageurl} );
259
        $itemtype->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtype->{imageurl} );
260
        $itemtype->{rentalcharge} = sprintf( '%.2f', $itemtype->{rentalcharge} );
261
        $itemtype->{defaultreplacecost} = sprintf( '%.2f', $itemtype->{defaultreplacecost} );
262
        $itemtype->{processfee} = sprintf( '%.2f', $itemtype->{processfee} );
263
        push( @loop, $itemtype );
260
        push( @loop, $itemtype );
264
    }
261
    }
265
262
(-)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 174-180 Item types administration Link Here
174
      </li>
175
      </li>
175
      <li>
176
      <li>
176
          <label for="rentalcharge">Rental charge: </label>
177
          <label for="rentalcharge">Rental charge: </label>
177
		  <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
178
      <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% rentalcharge %]" />
178
      </li>
179
      </li>
179
      <li>
180
      <li>
180
          <label for="defaultreplacecost">Default replacement cost: </label>
181
          <label for="defaultreplacecost">Default replacement cost: </label>
Lines 247-253 Item types administration Link Here
247
248
248
	<tr><th scope="row">Description</th><td>[% description %]</td></tr>
249
	<tr><th scope="row">Description</th><td>[% description %]</td></tr>
249
	<tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
250
	<tr><th scope="row">Loan length</th><td>[% loanlength %]</td></tr>
250
<tr><th scope="row">Rental charge</th><td>[% rentalcharge %]</td></tr></table>
251
<tr><th scope="row">Rental charge</th><td>[% Pricerentalcharge | $Price %]</td></tr></table>
251
		<form action="[% script_name %]" method="post">
252
		<form action="[% script_name %]" method="post">
252
		<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
253
		<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="[% itemtype %]" />[% IF ( total ) %]
253
		</form>
254
		</form>
Lines 287-297 Item types administration Link Here
287
    <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
288
    <td>[% IF ( loo.notforloan ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
288
    <td>
289
    <td>
289
    [% UNLESS ( loo.notforloan ) %]
290
    [% UNLESS ( loo.notforloan ) %]
290
      [% loo.rentalcharge %]
291
      [% loo.rentalcharge | $Price %]
291
    [% END %]
292
    [% END %]
292
    </td>
293
    </td>
293
    <td>[% loo.defaultreplacecost %]</td>
294
    <td>[% loo.defaultreplacecost | $Price %]</td>
294
    <td>[% loo.processfee %]</td>
295
    <td>[% loo.processfee | $Price %]</td>
295
    <td>[% loo.checkinmsg | html_line_break %]</td>
296
    <td>[% loo.checkinmsg | html_line_break %]</td>
296
    <td>
297
    <td>
297
      <a href="[% loo.script_name %]?op=add_form&amp;itemtype=[% loo.itemtype |html %]">Edit</a>
298
      <a href="[% loo.script_name %]?op=add_form&amp;itemtype=[% loo.itemtype |html %]">Edit</a>
298
- 

Return to bug 12768