Browse Source

Bug 22301: (bug 11373 follow-up) Do not format amounts in inputs

on_edition flag must be set when the Price plugin is used on inputs.

Prices currently need to all be displayed with decimal dot in input
fields.

Test plan:
Trying to pay 9,55. Go into the input field and change 9 to
5.

Without this patch Koha will turn it into 555.00.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
19.05.x
Jonathan Druart 5 years ago
committed by Nick Clemens
parent
commit
c2bec690b5
  1. 8
      koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt

8
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt

@ -100,11 +100,11 @@
<li>
<label for="paid">Amount being paid: </label>
<input name="paid" id="paid" value="[% amountoutstanding | $Price %]"/>
<input name="paid" id="paid" value="[% amountoutstanding | $Price on_editing => 1 %]"/>
</li>
<li>
<label for="collected">Collected from patron: </label>
<input id="collected" value="[% amountoutstanding | $Price %]"/>
<input id="collected" value="[% amountoutstanding | $Price on_editing => 1 %]"/>
</li>
<li>
<label>Change to give: </label>
@ -202,7 +202,7 @@
</li>
<li>
<label for="paid">Amount paid :</label>
<input name="paid" id="paid" value="[% total | $Price %]"/>
<input name="paid" id="paid" value="[% total | $Price on_editing => 1 %]"/>
</li>
<li>
[% IF type == 'writeoff' %]
@ -210,7 +210,7 @@
[% ELSE %]
<label for="collected">Collect from patron: </label>
[% END %]
<input id="collected" value="[% total | $Price %]"/>
<input id="collected" value="[% total | $Price on_editing => 1 %]"/>
</li>
<li>
<label>Change to give: </label>

Loading…
Cancel
Save