Browse Source

Bug 28280: itemtype page, add price formatting

To Test:
1- create an item type with a 'Default replacement cost' and a
'Processing fee (when lost)'
2- numbers are displayed with 6 decimals.
4- apply patch
5- numbers are displayed with 2 decimals.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Didier Gautheron 3 years ago
committed by Jonathan Druart
parent
commit
7d8b2d67ff
  1. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt

4
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt

@ -344,11 +344,11 @@ Item types &rsaquo; Administration &rsaquo; Koha
</li>
<li>
<label for="defaultreplacecost">Default replacement cost: </label>
<input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | html %]" />
<input type="text" id="defaultreplacecost" name="defaultreplacecost" size="10" value="[% itemtype.defaultreplacecost | $Price on_editing => 1 %]" />
</li>
<li>
<label for="processfee">Processing fee (when lost): </label>
<input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | html %]" />
<input type="text" id="processfee" name="processfee" size="10" value="[% itemtype.processfee | $Price on_editing => 1 %]" />
</li>
<li>
<label for="checkinmsg">Checkin message: </label>

Loading…
Cancel
Save