Lines 2319-2327
Orders informations are in $invoice->{orders} (array ref)
Link Here
|
2319 |
|
2319 |
|
2320 |
sub GetInvoiceDetails { |
2320 |
sub GetInvoiceDetails { |
2321 |
my ($invoiceid) = @_; |
2321 |
my ($invoiceid) = @_; |
2322 |
my $invoice; |
|
|
2323 |
|
2322 |
|
2324 |
return unless $invoiceid; |
2323 |
if ( !defined $invoiceid ) { |
|
|
2324 |
carp 'GetInvoiceDetails called without an invoiceid'; |
2325 |
return; |
2326 |
} |
2325 |
|
2327 |
|
2326 |
my $dbh = C4::Context->dbh; |
2328 |
my $dbh = C4::Context->dbh; |
2327 |
my $query = qq{ |
2329 |
my $query = qq{ |
Lines 2333-2339
sub GetInvoiceDetails {
Link Here
|
2333 |
my $sth = $dbh->prepare($query); |
2335 |
my $sth = $dbh->prepare($query); |
2334 |
$sth->execute($invoiceid); |
2336 |
$sth->execute($invoiceid); |
2335 |
|
2337 |
|
2336 |
$invoice = $sth->fetchrow_hashref; |
2338 |
my $invoice = $sth->fetchrow_hashref; |
2337 |
|
2339 |
|
2338 |
$query = qq{ |
2340 |
$query = qq{ |
2339 |
SELECT aqorders.*, biblio.* |
2341 |
SELECT aqorders.*, biblio.* |