]> git.koha-community.org Git - koha.git/commit
Bug 27410: (follow-up) Updates to accommodate currency entry
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Jan 2021 14:40:52 +0000 (14:40 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Mar 2021 12:48:31 +0000 (13:48 +0100)
commite91308d7291ed5e3b83f7d7d4b935c3c61c2c522
tree8999119ac40446a7f0fe28b16e7de892e3f15d34
parentd1c89f5c50c0ee537df8ba5512acadfee1093f2b
Bug 27410: (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
invoice "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/maninvoice.tt