From 528d986a53481da28dde70e4c87b3917e01a7d9f Mon Sep 17 00:00:00 2001 From: Jon Knight 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