Bugzilla – Attachment 117700 Details for
Bug 27410
Update intranet-tmpl/prog/en/modules/members/maninvoice.tt to reflect ACC2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27410: (follow-up) Updates to accommodate currency entry
Bug-27410-follow-up-Updates-to-accommodate-currenc.patch (text/plain), 2.26 KB, created by
Katrin Fischer
on 2021-03-04 12:27:55 UTC
(
hide
)
Description:
Bug 27410: (follow-up) Updates to accommodate currency entry
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-03-04 12:27:55 UTC
Size:
2.26 KB
patch
obsolete
>From 322c52a43546e04d212040f0d403ae42f1d0248f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 21 Jan 2021 14:40:52 +0000 >Subject: [PATCH] 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: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >index 56fe3b0d44..be950ce76c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >@@ -69,7 +69,7 @@ > <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" value="[% barcode | html %]" /></li> > <li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" value="[% desc | html %]" /></li> > <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" value="[% note | html %]" /></li> >- <li><label for="amount">Amount: </label><input type="text" inputmode="numeric" pattern="[0-9]*" name="amount" id="amount" required="required" value="[% amount | $Price on_editing => 1 %]" /> Example: 5.00</li> >+ <li><label for="amount">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" value="[% amount | $Price on_editing => 1 %]" /> Example: 5.00</li> > </ol> > </fieldset> > <fieldset class="action"> >-- >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 27410
:
115394
|
115471
|
115551
|
115553
|
117012
|
117013
|
117700
|
117705
|
117706