From da6b078cf415eb2164910b5392848004c41b1d62 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 4 Apr 2013 12:09:37 +0200 Subject: [PATCH] Bug 10090: display item type description instead of code on acq ordered and spent pages On ordered.pl and spent.pl, the itemtype codes are displayed, instead of descriptions. Links for the ordernumber should be changed. In ordered.pl, we are redirected to the receive page. In spent.pl, the links are deleted. Signed-off-by: Broust Revisited patch: The link to orderreceive was broken, so I undo the changes. Signed-off-by: Katrin Fischer Works alright, itemtype descriptions are shown. The removed link was potentially 'dangerous' as you shouldn't get to the receive page for an order, without providing an invoicenumber first. Passes all tests and QA script. Signed-off-by: Galen Charlton (cherry picked from commit 378bffa0ddbe793dff75a828e2bf5b03ad666b57) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt index 05a33214a0..53cc51ebb7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Ordered @@ -66,7 +67,7 @@ [% order.booksellerid %] - [% order.itype %] + [% ItemTypes.GetDescription( order.itype ) %] [% order.left %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt index 81fe3e4dec..0d88dfd176 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE ItemTypes %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Spent @@ -60,7 +61,7 @@ [% order.title %] - [% order.ordernumber %] + [% order.ordernumber %] [% order.booksellerid %] @@ -69,7 +70,7 @@ [% order.invoicenumber %] - [% order.itype %] + [% ItemTypes.GetDescription( order.itype ) %] [% order.quantityreceived %] -- 2.39.5