From 0debaa73cdfd3579701a9d3578cc008197ce739f Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Wed, 22 May 2013 19:32:45 +0100 Subject: [PATCH] Bug 10313 Fix link to invoice from orders Need to have invoiceid and pass it to retrieve selected invoicenumber. Wrong data passed causing incorrect records to be displayed Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton (cherry picked from commit 3f4d31309203b85b5415788967d4c8cf3ce83570) Signed-off-by: Tomas Cohen Arazi There's a small POD error, I'll try to provide a followup for it. (cherry picked from commit ed34661870e50e04acf61c7f687343b9a2a8f1da) Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked from commit ed34661870e50e04acf61c7f687343b9a2a8f1da) --- C4/Acquisition.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 6ead364f3c..a882cf6ea1 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1952,6 +1952,7 @@ sub GetHistory { aqorders.quantityreceived, aqorders.ecost, aqorders.ordernumber, + aqorders.invoiceid, aqinvoices.invoicenumber, aqbooksellers.id as id, aqorders.biblionumber diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index feb58ff87d..c525474b9b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -87,8 +87,8 @@   [% END %] - [% IF ( suggestions_loo.invoicenumber ) %] - [% suggestions_loo.invoicenumber %] + [% IF suggestions_loo.invoicenumber %] + [% suggestions_loo.invoicenumber %] [% ELSE %]   [% END %] -- 2.39.5