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 <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Colin Campbell 2013-05-22 19:32:45 +01:00 committed by Galen Charlton
parent c4978ef178
commit 3f4d313092
2 changed files with 3 additions and 2 deletions

View file

@ -2049,6 +2049,7 @@ sub GetHistory {
aqorders.quantityreceived, aqorders.quantityreceived,
aqorders.ecost, aqorders.ecost,
aqorders.ordernumber, aqorders.ordernumber,
aqorders.invoiceid,
aqinvoices.invoicenumber, aqinvoices.invoicenumber,
aqbooksellers.id as id, aqbooksellers.id as id,
aqorders.biblionumber aqorders.biblionumber

View file

@ -90,8 +90,8 @@
&nbsp; &nbsp;
[% END %] [% END %]
</td> </td>
<td>[% IF ( suggestions_loo.invoicenumber ) %] <td>[% IF suggestions_loo.invoicenumber %]
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% suggestions_loo.invoicenumber %]">[% suggestions_loo.invoicenumber %]</a> <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% suggestions_loo.invoiceid %]">[% suggestions_loo.invoicenumber %]</a>
[% ELSE %] [% ELSE %]
&nbsp; &nbsp;
[% END %] [% END %]