Merge branch 'bug_9503' into 3.12-master
This commit is contained in:
commit
fc3f9cfbe3
|
|
@ -2319,9 +2319,11 @@ Orders informations are in $invoice->{orders} (array ref)
|
|||
|
||||
sub GetInvoiceDetails {
|
||||
my ($invoiceid) = @_;
|
||||
my $invoice;
|
||||
|
||||
return unless $invoiceid;
|
||||
if ( !defined $invoiceid ) {
|
||||
carp 'GetInvoiceDetails called without an invoiceid';
|
||||
return;
|
||||
}
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query = qq{
|
||||
|
|
@ -2333,7 +2335,7 @@ sub GetInvoiceDetails {
|
|||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute($invoiceid);
|
||||
|
||||
$invoice = $sth->fetchrow_hashref;
|
||||
my $invoice = $sth->fetchrow_hashref;
|
||||
|
||||
$query = qq{
|
||||
SELECT aqorders.*, biblio.*
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
[% END %]
|
||||
</td>
|
||||
<td>[% IF ( suggestions_loo.invoicenumber ) %]
|
||||
<a href="/cgi-bin/koha/acqui/parcel.pl?invoice=[% suggestions_loo.invoicenumber %]&booksellerid=[% suggestions_loo.id %]&datereceived=[% suggestions_loo.datereceived %]">[% suggestions_loo.invoicenumber %]</a>
|
||||
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% suggestions_loo.invoicenumber %]">[% suggestions_loo.invoicenumber %]</a>
|
||||
[% ELSE %]
|
||||
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue