From 4cd90c2c019002fc81b909502e6b2697bcdb9aae Mon Sep 17 00:00:00 2001 From: David Nind Date: Sat, 20 Feb 2021 23:06:01 +0000 Subject: [PATCH] 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 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt index 1ffdb9db77..ebee5bd376 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -273,7 +273,7 @@
  • - + Required
  • [% SET payment_types = [] %] -- 2.11.0