From 26c59980fe123fc6033098ae374f57c4afd53aca Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 13 Jan 2019 10:06:22 +0100 Subject: [PATCH] Bug 22119: Add price formatting in more places in circulation This adds some missing Price filters to some places in circulation. To check verify the amount are displayed according to setting of CurrencyFormat (use FR or CH for seeing a change) Use a patron account with no pending fines at the beginning for all tests. 1) - Switch RentalFeesCheckoutConfirmation to "Ask" - Check out an item with a rental charge - Verify message is formatted correctly: Rental charge for this item: ... 2) - Switch RentalsInNoissuesCharge to "Don't include" - Make sure patron has only Rental fines on their account - Check out another item - Verify message is formatted correctly: The patron has unpaid charges for holds, rentals etc ... 3) - Switch BatchCheckouts to "Allow" - Add the patron category of your test patron to BatchCheckoutsValidCategories - Checkout any item - Verify the message in the information column is formatted correctly: The patron has unpaid charges for holds, rentals etc of ... Signed-off-by: Jasmine Amohia Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens (cherry picked from commit dc6be66e2b2ec5917d7bec020d4e94c40baa9f6c) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++-- .../prog/en/modules/circ/circulation_batch_checkouts.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 38300c8f33..3967f9d416 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -68,7 +68,7 @@ [% END %] [% IF ( alert.OTHER_CHARGES ) %] -
The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]
+
The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]
[% END %] [% IF alert.HIGHHOLDS %] @@ -107,7 +107,7 @@ [% END %] [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] -
  • Rental charge for this item: [% RENTALCHARGE | html %]
  • +
  • Rental charge for this item: [% RENTALCHARGE | $Price %]
  • [% END %] [% IF ( RENEW_ISSUE ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt index 715c9e1a6b..b15cbb8e23 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -192,7 +192,7 @@
  • This item has been lost with a status of "[% checkout_info.alert.ITEM_LOST | html %]."
  • [% END %] [% IF checkout_info.alert.OTHER_CHARGES %] -
  • The patron has unpaid charges for holds, rentals etc of [% checkout_info.alert.OTHER_CHARGES | html %].
  • +
  • The patron has unpaid charges for holds, rentals etc of [% checkout_info.alert.OTHER_CHARGES | $Price %].
  • [% END %] [% END %] -- 2.39.5