Bug 27408: (follow-up) Updates to accommodate currency entry
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Jan 2021 14:29:03 +0000 (14:29 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Mar 2021 12:48:31 +0000 (13:48 +0100)
commitf0d4fac8dd50f57518d62f0b56ee588d2710f0b8
tree999b9930e720baed0d6e75dd54ad4bb3c5e59c2c
parent5b3c5dc376a89d3cb780b820c374f2ea20e65726
Bug 27408: (follow-up) Updates to accommodate currency entry

This patch makes two modifications in order to allow the entry of
currency strings (e.g. 1.25).
- Inputmode changed to "decimal"
- Regex pattern changed to "^\d+(\.\d{2})?$" as found in
  admin/debit_types.tt

To test, apply the patch and test entry of various strings in the manual
credit "amount" field. Confirm that the field only accepts digits or
digits followed by a decimal and two digits.

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>
koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt