Bugzilla – Attachment 117120 Details for
Bug 27405
Update intranet-tmpl/prog/en/modules/pos/register.tt for ACC2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27405: (follow up) Updates to accommodate currency entry
Bug-27405-follow-up-Updates-to-accommodate-currenc.patch (text/plain), 1.77 KB, created by
David Nind
on 2021-02-20 23:07:40 UTC
(
hide
)
Description:
Bug 27405: (follow up) Updates to accommodate currency entry
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-02-20 23:07:40 UTC
Size:
1.77 KB
patch
obsolete
>From 4cd90c2c019002fc81b909502e6b2697bcdb9aae Mon Sep 17 00:00:00 2001 >From: David Nind <david@davidnind.com> >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 <david@davidnind.com> >--- > 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 @@ > </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 = [] %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27405
:
115378
|
115463
|
117119
|
117120
|
117195
|
117196
|
117740
|
117741