From ed34661870e50e04acf61c7f687343b9a2a8f1da 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. --- 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 a570a7358b..d2147a27c9 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -2049,6 +2049,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 10ae2eda77..4132edb7fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -90,8 +90,8 @@   [% END %] - [% IF ( suggestions_loo.invoicenumber ) %] - [% suggestions_loo.invoicenumber %] + [% IF suggestions_loo.invoicenumber %] + [% suggestions_loo.invoicenumber %] [% ELSE %]   [% END %] -- 2.39.5