@@ -, +, @@
- Find or create a patron with some checkouts
- Make sure some items have replacement price set
and some have a rental charge
- "Print summary" from the account in staff
- Verify that charges and prices in the checkouts
table are formatted correctly
- Toggle CurrencyFormat to different settings
---
.../intranet-tmpl/prog/en/modules/members/moremember-print.tt | 8 ++++----
members/summary-print.pl | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
@@ -58,16 +58,16 @@
[% issue.itemtype_description | html %] |
[% issue.date_due | $KohaDates as_due_date => 1 %] |
[% issue.barcode | html %] |
- [% issue.charge | html %] |
- [% issue.replacementprice | html %] |
+ [% issue.charge | $Price %] |
+ [% issue.replacementprice | $Price %] |
[% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %] |
[% END %]
Totals: |
- [% totaldue | html %] |
- [% totalprice | html %] |
+ [% totaldue | $Price %] |
+ [% totalprice | $Price %] |
|
--- a/members/summary-print.pl
+++ a/members/summary-print.pl
@@ -96,7 +96,7 @@ sub build_issue_data {
$itemtype = Koha::ItemTypes->find( $itemtype );
$checkout->{itemtype_description} = $itemtype->description; #FIXME Should not it be translated_description
- $checkout->{charge} = sprintf( "%.2f", $charge ); # TODO Should be done in the template using Price
+ $checkout->{charge} = $charge;
$checkout->{overdue} = $c->is_overdue;
--