Bugzilla – Attachment 85136 Details for
Bug 22301
Paying fines is broken when using CurrencyFormat = FR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22301: (bug 11373 follow-up) Do not format amounts in inputs
Bug-22301-bug-11373-follow-up-Do-not-format-amount.patch (text/plain), 2.14 KB, created by
Jonathan Druart
on 2019-02-14 18:03:34 UTC
(
hide
)
Description:
Bug 22301: (bug 11373 follow-up) Do not format amounts in inputs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-02-14 18:03:34 UTC
Size:
2.14 KB
patch
obsolete
>From aef84fd2a04a640a2e83a3b089e65634950ae4d7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 14 Feb 2019 15:00:30 -0300 >Subject: [PATCH] Bug 22301: (bug 11373 follow-up) Do not format amounts in > inputs > >on_edition flag must be set when the Price plugin is used on inputs. > >Prices currently need to all be displayed with decimal dot in input >fields. > >Test plan: >Trying to pay 9,55. Go into the input field and change 9 to >5. > >Without this patch Koha will turn it into 555.00. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >index f92f091a42..78ee2ed934 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >@@ -100,11 +100,11 @@ > > <li> > <label for="paid">Amount being paid: </label> >- <input name="paid" id="paid" value="[% amountoutstanding | $Price %]"/> >+ <input name="paid" id="paid" value="[% amountoutstanding | $Price on_editing => 1 %]"/> > </li> > <li> > <label for="collected">Collected from patron: </label> >- <input id="collected" value="[% amountoutstanding | $Price %]"/> >+ <input id="collected" value="[% amountoutstanding | $Price on_editing => 1 %]"/> > </li> > <li> > <label>Change to give: </label> >@@ -202,7 +202,7 @@ > </li> > <li> > <label for="paid">Amount paid :</label> >- <input name="paid" id="paid" value="[% total | $Price %]"/> >+ <input name="paid" id="paid" value="[% total | $Price on_editing => 1 %]"/> > </li> > <li> > [% IF type == 'writeoff' %] >@@ -210,7 +210,7 @@ > [% ELSE %] > <label for="collected">Collect from patron: </label> > [% END %] >- <input id="collected" value="[% total | $Price %]"/> >+ <input id="collected" value="[% total | $Price on_editing => 1 %]"/> > </li> > <li> > <label>Change to give: </label> >-- >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 22301
:
85136
|
85142
|
85154