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:
parent
c4978ef178
commit
3f4d313092
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -90,8 +90,8 @@
|
||||||
|
|
||||||
[% 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 %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
Loading…
Reference in a new issue