Bugzilla – Attachment 192333 Details for
Bug 41688
Refund modal and amount as NaN, rejected comma separator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41688: Fix NaN display in POS refund modal
Bug-41688-Fix-NaN-display-in-POS-refund-modal.patch (text/plain), 5.44 KB, created by
Thibaud Guillot (thibaud_g)
on 2026-02-02 15:56:45 UTC
(
hide
)
Description:
Bug 41688: Fix NaN display in POS refund modal
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2026-02-02 15:56:45 UTC
Size:
5.44 KB
patch
obsolete
>From 3f742a53db3c804b002206791e49b02bf1a9c943 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Mon, 2 Feb 2026 16:55:22 +0100 >Subject: [PATCH] Bug 41688: Fix NaN display in POS refund modal > >Test plan: > >Prerequisites: CurrencyFormat as 'FR' activated, have already produced a payment (with a comma separator) > >1. Go to POS > register > transaction history >2. Click "Issue refund" on any paid transaction >3. Verify "Amount paid" shows correct amount (not NaN but get the value > with comma separator) >4. Enter refund amount (point separator is mandatory to valid input) >5. Verify no validation error occurs >6. Process refund successfully > >Sponsored-by: BibLibre >--- > .../prog/en/modules/pos/register.tt | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index 932189150f5..374a0cd75bb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -144,8 +144,8 @@ > data-bs-target="#issueRefundModal" > data-item="[%- PROCESS account_type_description account=credit.debit -%]" > data-accountline="[% credit.debit.accountlines_id | html %]" >- data-amount="[% credit.debit.amount | $Price %]" >- data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" >+ data-amount="[% credit.debit.amount | html %]" >+ data-amountoutstanding="[% credit.debit.amountoutstanding | html %]" > data-member="[% credit.debit.borrowernumber | html %]" > ><i class="fa-solid fa-money-bill-1"></i> Issue refund</button > > >@@ -157,8 +157,8 @@ > data-bs-target="#issueRefundModal" > data-item="[%- PROCESS account_type_description account=credit.debit -%]" > data-accountline="[% credit.debit.accountlines_id | html %]" >- data-amount="[% credit.debit.amount | $Price %]" >- data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" >+ data-amount="[% credit.debit.amount | html %]" >+ data-amountoutstanding="[% credit.debit.amountoutstanding | html %]" > data-member="[% credit.debit.borrowernumber | html %]" > ><i class="fa-solid fa-money-bill-1"></i> Issue refund</button > > >@@ -279,8 +279,8 @@ > data-bs-target="#issueRefundModal" > data-item="[%- PROCESS account_type_description account=credit.debit -%]" > data-accountline="[% credit.debit.accountlines_id | html %]" >- data-amount="[% credit.debit.amount | $Price %]" >- data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" >+ data-amount="[% credit.debit.amount | html %]" >+ data-amountoutstanding="[% credit.debit.amountoutstanding | html %]" > data-member="[% credit.debit.borrowernumber | html %]" > ><i class="fa-solid fa-money-bill-1"></i> Issue refund</button > > >@@ -292,8 +292,8 @@ > data-bs-target="#issueRefundModal" > data-item="[%- PROCESS account_type_description account=credit.debit -%]" > data-accountline="[% credit.debit.accountlines_id | html %]" >- data-amount="[% credit.debit.amount | $Price %]" >- data-amountoutstanding="[% credit.debit.amountoutstanding | $Price %]" >+ data-amount="[% credit.debit.amount | html %]" >+ data-amountoutstanding="[% credit.debit.amountoutstanding | html %]" > data-member="[% credit.debit.borrowernumber | html %]" > ><i class="fa-solid fa-money-bill-1"></i> Issue refund</button > > >-- >2.39.5
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 41688
:
191871
|
191872
|
192333
|
192584
|
192585