From 9ad483b2040ca1fa322ef0af7abe211817d84926 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 5 Jan 2019 05:41:48 +0000 Subject: [PATCH] Bug 22113: Add price formatting on item lost report 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 Signed-off-by: Jose-Mario Monteiro-Santos Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens (cherry picked from commit c3fb484fe2922d2a97053b3fde4fb433c5aa0c4f) Signed-off-by: Martin Renvoize (cherry picked from commit da8e5fcd2447aad751e511adac4d29bac7cec82c) Signed-off-by: Lucas Gass --- .../prog/en/modules/reports/itemslost.tt | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt index 596e99dffa..3bcb2e002f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt @@ -4,6 +4,7 @@ [% USE ColumnsSettings %] [% USE KohaDates %] [% USE ItemTypes %] +[% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Reports › Lost items @@ -91,16 +92,16 @@ [% item.barcode %] - [% item.itemcallnumber %] - [% item.datelastseen | $KohaDates %] - [% item.price %] - [% item.replacementprice %] - [% Branches.GetName(item.homebranch) %] - [% ItemTypes.GetDescription(item.effective_itemtype) %] - [% Branches.GetName(item.holdingbranch) %] - [% AuthorisedValues.GetByCode( 'LOC', item.location )%] - [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] - [% item.itemnotes %] + [% item.itemcallnumber | html %] + [% item.datelastseen | $KohaDates %] + [% item.price | $Price %] + [% item.replacementprice | $Price %] + [% Branches.GetName(item.homebranch) | html %] + [% ItemTypes.GetDescription(item.effective_itemtype) | html %] + [% Branches.GetName(item.holdingbranch) | html %] + [% AuthorisedValues.GetByCode( 'LOC', item.location ) | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] + [% item.itemnotes | html %] [% END %] -- 2.39.5