Browse Source

Bug 27405: (follow up) Updates to accommodate currency entry

This patch makes two modifications to allow the entry of
currency strings (for example, 1.25) so that it is consistent with other
payment entry forms.

- Inputmode changed to "decimal"
- Regex pattern changed to "^\d+(\.\d{2})?$" as found in
  admin/debit_types.tt

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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
David Nind 7 months ago
committed by Jonathan Druart
parent
commit
ed582b4558
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt

2
koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt

@ -273,7 +273,7 @@
</li>
<li>
<label class="required" for="amount">Returned to patron: </label>
<input type="text" inputmode="numeric" pattern="[0-9]*" id="returned" name="amount" required="required">
<input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" id="returned" name="amount" required="required">
<span class="required">Required</span>
</li>
[% SET payment_types = [] %]

Loading…
Cancel
Save