Bugzilla – Attachment 36989 Details for
Bug 2542
Manual fine/credit fail on superfluous characters ( e.g. '$' )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2542: Validate the amount of a manual invoice
Bug-2542-Validate-the-amount-of-a-manual-invoice.patch (text/plain), 1.70 KB, created by
Jonathan Druart
on 2015-03-18 15:51:58 UTC
(
hide
)
Description:
Bug 2542: Validate the amount of a manual invoice
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-18 15:51:58 UTC
Size:
1.70 KB
patch
obsolete
>From 5654eae2b596e6ab5543f81f8125ef94e7bcf2e5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 18 Mar 2015 16:49:52 +0100 >Subject: [PATCH] Bug 2542: Validate the amount of a manual invoice > >If a manual invoice amount is not correctly set, it should not be >accepted. > >Test plan: >Try to create a manual invoice with an amount containing something else >than numbers. >It should not be possible. >--- > 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 445fffe..3e4b9b2 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 @@ type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.li > <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> > <li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li> > <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> >- <li><label for="amount">Amount: </label><input type="text" name="amount" id="amount" /> Example: 5.00</li> >+ <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="0"/> Example: 5.00</li> > </ol></fieldset> > <fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> > </form> >-- >2.1.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 2542
:
36989
|
36990
|
37145
|
37166
|
37202
|
37538
|
37555
|
37556