Bugzilla – Attachment 68276 Details for
Bug 19479
Price display on a basketgroup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to format totals according to the CurrencyFormat syspref.
Patch-to-format-totals-according-to-the-CurrencyFo.patch (text/plain), 1021 bytes, created by
Jon Knight
on 2017-10-18 17:03:40 UTC
(
hide
)
Description:
Patch to format totals according to the CurrencyFormat syspref.
Filename:
MIME Type:
Creator:
Jon Knight
Created:
2017-10-18 17:03:40 UTC
Size:
1021 bytes
patch
obsolete
>From 528d986a53481da28dde70e4c87b3917e01a7d9f Mon Sep 17 00:00:00 2001 >From: Jon Knight <J.P.Knight@lboro.ac.uk> >Date: Wed, 18 Oct 2017 17:00:10 +0000 >Subject: [PATCH] Patch to format totals according to the CurrencyFormat > syspref. > >https://bugs.koha-community.org/show_bug.cgi?id=19479 >--- > acqui/basketgroup.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl >index 0e8a9a1..58a11ae 100755 >--- a/acqui/basketgroup.pl >+++ b/acqui/basketgroup.pl >@@ -56,6 +56,7 @@ use Koha::EDI qw/create_edi_order get_edifact_ean/; > > use Koha::Biblioitems; > use Koha::Acquisition::Booksellers; >+use Koha::Number::Price; > use Koha::ItemTypes; > use Koha::Patrons; > >@@ -83,6 +84,8 @@ sub BasketTotal { > $total = $total + ( $order->{ecost_tax_excluded} * $order->{quantity} ); > } > } >+ my $formattotal = new Koha::Number::Price($total); >+ $total = $formattotal->format(); > $total .= " " . ($bookseller->invoiceprice // 0); > return $total; > } >-- >2.1.4
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 19479
:
68276
|
68849
|
68972
|
71312
|
71313
|
73290
|
73291
|
73376
|
73377
|
73379
|
73491
|
73677
|
74274
|
74284
|
74739