Bug 22121: Display 'Price paid' on ILL requests according to CurrencyFormat pref
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Fri, 5 Apr 2019 13:45:39 +0000 (14:45 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 11 Apr 2019 13:34:10 +0000 (13:34 +0000)
To test:
- Install BLDSS backend
  see: https://wiki.koha-community.org/wiki/ILL_backends
- Add a new BLDSS ILL request
- Edit ILL request
- Fill in Price paid field
- Verify Price paid is formatted correctly on 'Manage ILL request'
  page

Signed-off-by: Ethan Amohia <ethan.amohia@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

https://bugs.koha-community.org/show_bug.cgi?id=22121

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt

index 39f09ee..2becaf5 100644 (file)
@@ -6,6 +6,7 @@
 [% SET footerjs = 1 %]
 [% USE AuthorisedValues %]
 [% USE ColumnsSettings %]
+[% USE Price %]
 
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; ILL requests</title>
                                 </li>
                                 <li class="cost">
                                     <label class="cost">Cost:</label>
-                                    [% IF request.cost %][% request.cost | html %][% ELSE %]<span>N/A</span>[% END %]
+                                    [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
                                 </li>
                                 <li class="price_paid">
                                     <label class="price_paid">Price paid:</label>
                                     </li>
                                     <li class="cost">
                                         <span class="label cost">Cost:</span>
-                                        [% IF request.cost %][% request.cost | html %][% ELSE %]<span>N/A</span>[% END %]
+                                        [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
                                     </li>
                                     <li class="price_paid">
                                         <span class="label price_paid">Price paid:</span>
-                                        [% IF request.price_paid %][% request.price_paid | html %][% ELSE %]<span>N/A</span>[% END %]
+                                        [% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %]
                                     </li>
                                     <li class="req_id">
                                         <span class="label req_id">Request number:</span>