Bugzilla – Attachment 118604 Details for
Bug 24300
Add a 'payout amount' option to accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24300: (follow-up) Set minimum for amount input
Bug-24300-follow-up-Set-minimum-for-amount-input.patch (text/plain), 1.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-03-22 14:42:28 UTC
(
hide
)
Description:
Bug 24300: (follow-up) Set minimum for amount input
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-03-22 14:42:28 UTC
Size:
1.25 KB
patch
obsolete
>From 7610fa7588e245101ea8f99e587f253d0d0c50a7 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 16 Mar 2021 16:06:36 +0000 >Subject: [PATCH] Bug 24300: (follow-up) Set minimum for amount input > >Add a 'min' attribute for validation of the amount field in the payout >modal so that negative amounts cannot be submitted. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index a411db62bc1..971ff4f41c5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -373,7 +373,7 @@ > $('#payoutline').val(accountline); > var amount = button.data('amount') * -1; > $("#paid + span").replaceWith(amount); >- $("#amount").attr({ "value": amount, "max": amount }); >+ $("#amount").attr({ "value": amount, "max": amount, "min": 0 }); > $("#amount, #payout_transaction_type").focus(); > }); > >-- >2.31.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 24300
:
116395
|
116412
|
116413
|
116837
|
116838
|
117917
|
117918
|
117919
|
118335
|
118392
|
118393
|
118394
|
118395
|
118396
|
118464
|
118503
|
118601
|
118602
|
118603
|
118604
|
118605
|
118606
|
118612
|
119195
|
119196
|
119197
|
119198
|
119199
|
119200
|
120016
|
120017
|
120018
|
120019
|
120020
|
120021