Bug 19479: Display price in basket group formatted according to CurrencyFormat syspref using templates.
On the page acqui/basketgroup.pl the prices of baskets should be shown formatted according to the selected CurrencyFormat syspref, with no currency symbol or code. Test plan: 1) Create a basket with items in it worth more than 1000 currency units. 2) Close the basket. 3) Go to acqui/basketgroup.pl page and check that the price format matches the current CurrencyFormat syspref. 4) Go to Administration and change CurrencyFormat syspref to one of the other available options and recheck step 3. Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Fixed some tabs. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
95031b035b
commit
443b7159fa
|
|
@ -82,7 +82,6 @@ sub BasketTotal {
|
|||
$total = $total + ( $order->{ecost_tax_excluded} * $order->{quantity} );
|
||||
}
|
||||
}
|
||||
$total .= " " . ($bookseller->invoiceprice // 0);
|
||||
return $total;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
[% USE Asset %]
|
||||
[% USE Branches %]
|
||||
[% USE Price %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Basket grouping for [% booksellername |html %]</title>
|
||||
[% Asset.css("css/datatables.css") %]
|
||||
|
|
@ -174,7 +175,7 @@ function submitForm(form) {
|
|||
No name, basketnumber: [% basket.basketno %]
|
||||
[% END %]
|
||||
</a>, <br />
|
||||
Total: [% basket.total %]
|
||||
Total: [% basket.total | $Price %]
|
||||
<input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
@ -260,7 +261,7 @@ function submitForm(form) {
|
|||
No name, basketnumber: [% selectedbasket.basketno %]
|
||||
[% END %]
|
||||
</a>, <br />
|
||||
Total: [% selectedbasket.total %]
|
||||
Total: [% selectedbasket.total | $Price %]
|
||||
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue