Bugzilla – Attachment 140685 Details for
Bug 31513
NaN errors when using refund and payout with CurrencyFormat = FR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31513: (QA follow-up) Keep price formatting on non-editable text fields
Bug-31513-QA-follow-up-Keep-price-formatting-on-no.patch (text/plain), 2.50 KB, created by
Joonas Kylmälä
on 2022-09-15 18:16:36 UTC
(
hide
)
Description:
Bug 31513: (QA follow-up) Keep price formatting on non-editable text fields
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2022-09-15 18:16:36 UTC
Size:
2.50 KB
patch
obsolete
>From ee20ef28078e0f82550f080b8a5ab774d99bc1f9 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= <joonas.kylmala@iki.fi> >Date: Thu, 15 Sep 2022 18:06:53 +0000 >Subject: [PATCH] Bug 31513: (QA follow-up) Keep price formatting on > non-editable text fields >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> >--- > .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >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 aa8415ca4b..592cac4ad5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -327,6 +327,7 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'format_price.inc' %] > [% INCLUDE 'columns_settings.inc' %] > [% INCLUDE 'str/members-menu.inc' %] > [% Asset.js("js/members-menu.js") | $raw %] >@@ -371,7 +372,7 @@ > var accountline = button.data('accountline'); > $('#payoutline').val(accountline); > var amount = button.data('amount') * -1; >- $("#paid + span").replaceWith(amount); >+ $("#paid + span").replaceWith(amount.format_price()); > $("#amount").attr({ "value": amount, "max": amount, "min": 0 }); > $("#amount, #payout_transaction_type").focus(); > }); >@@ -385,7 +386,7 @@ > var amount = button.data('amount'); > var amountoutstanding = button.data('amountoutstanding') || 0; > var paid = amount - amountoutstanding; >- $("#paid + span").replaceWith(paid); >+ $("#paid + span").replaceWith(paid.format_price()); > $("#returned").attr({ "value": paid, "max": paid, "min": 0 }); > var member = button.data('member'); > if ( member === '' ) { >@@ -403,7 +404,7 @@ > var accountline = button.data('accountline'); > $('#discountline').val(accountline); > var amount = button.data('amount'); >- $("#charged + span").replaceWith(amount); >+ $("#charged + span").replaceWith(amount.format_price()); > $("#discount").attr({ "max": amount, "min": 0 }); > $("#discount").focus(); > }); >-- >2.30.2
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 31513
:
140405
|
140612
|
140684
| 140685