Bugzilla – Attachment 98058 Details for
Bug 24482
Purchase Items broken by costs containing a comma
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24482: Fix for formatted price issue with value over 1000
Bug-24482-Fix-for-formatted-price-issue-with-value.patch (text/plain), 1.57 KB, created by
David Nind
on 2020-01-29 10:23:44 UTC
(
hide
)
Description:
Bug 24482: Fix for formatted price issue with value over 1000
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-01-29 10:23:44 UTC
Size:
1.57 KB
patch
obsolete
>From 04bcd3c3d133c3a7f57d6b7f7c2e3df866dae9bb Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 27 Jan 2020 14:56:35 +0000 >Subject: [PATCH] Bug 24482: Fix for formatted price issue with value over 1000 > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >index 6f87d8b510..ddc7ac15d9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -323,7 +323,7 @@ > }, > "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { > var iTotal = aData[1] * aData[2]; >- this.fnUpdate( iTotal.format_price(), nRow, 3, false, false ); >+ this.fnUpdate( iTotal, nRow, 3, false, false ); > }, > "fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) { > var iTotalPrice = 0; >@@ -331,9 +331,7 @@ > { > iTotalPrice += aData[i][3]*1; > } >- >- iTotalPrice = Number.parseFloat(iTotalPrice).toFixed(2); >- nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice; >+ nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice.format_price(); > $('#paid').val(iTotalPrice); > $('#paid').trigger('change'); > } >-- >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 24482
:
97983
|
98058
|
98107
|
98582