Bug 22113: Add price formatting on item lost report
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 5 Jan 2019 05:41:48 +0000 (05:41 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 25 Jan 2019 17:40:32 +0000 (17:40 +0000)
The item lost report displays the price and replacement
price for lost items. With the patch they will display
according to the CurrencyFormat system preference.

To test:
- Mark 1 or more items lost
- Make sure that replacement cost and purchase price are set
- Go to Reports > Items lost
- Search for your lost items
- Verify price and replacement price display
- Apply patch and toggle CurrencyFormat to different settings
- Refresh lost items report
- Verify prices are always displayed according to syspref setting

Signed-off-by: Olivia Lu <olivialokm@gmail.com>
Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt

index bae06c0..578d21f 100644 (file)
@@ -5,6 +5,7 @@
 [% USE ColumnsSettings %]
 [% USE KohaDates %]
 [% USE ItemTypes %]
+[% USE Price %]
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Reports &rsaquo; Lost items</title>
                         </td>
                         <td>[% item.itemcallnumber | html %]</td>
                         <td><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
-                        <td>[% item.price | html %]</td>
-                        <td>[% item.replacementprice | html %]</td>
+                        <td>[% item.price | $Price %]</td>
+                        <td>[% item.replacementprice | $Price %]</td>
                         <td>[% Branches.GetName(item.homebranch) | html %]</td>
                         <td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td>
                         <td>[% Branches.GetName(item.holdingbranch) | html %]</td>