|
Lines 557-582
if ($StaffDetailItemSelection) {
Link Here
|
| 557 |
} |
557 |
} |
| 558 |
} |
558 |
} |
| 559 |
|
559 |
|
| 560 |
my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); |
|
|
| 561 |
my @deletedorders_using_biblio; |
| 562 |
my @orders_using_biblio; |
| 563 |
|
| 564 |
foreach my $myorder (@allorders_using_biblio) { |
| 565 |
my $basket = $myorder->{'basketno'}; |
| 566 |
if ((defined $myorder->{'datecancellationprinted'}) and ($myorder->{'datecancellationprinted'} ne '0000-00-00') ){ |
| 567 |
push @deletedorders_using_biblio, $myorder; |
| 568 |
} |
| 569 |
else { |
| 570 |
push @orders_using_biblio, $myorder; |
| 571 |
} |
| 572 |
} |
| 573 |
|
| 574 |
$template->param(biblio => $biblio); |
560 |
$template->param(biblio => $biblio); |
| 575 |
|
561 |
|
| 576 |
my $count_orders_using_biblio = scalar @orders_using_biblio ; |
562 |
my $orders = |
| 577 |
$template->param (countorders => $count_orders_using_biblio); |
563 |
Koha::Acquisition::Orders->search( { biblionumber => $biblionumber } ); |
| 578 |
|
564 |
|
| 579 |
my $count_deletedorders_using_biblio = scalar @deletedorders_using_biblio ; |
565 |
$template->param( |
| 580 |
$template->param (countdeletedorders => $count_deletedorders_using_biblio); |
566 |
countorders => $orders->search( { |
|
|
567 |
datecancellationprinted => [ undef, '0000-00-00' ] |
| 568 |
} )->count, |
| 569 |
countdeletedorders => $orders->search( { |
| 570 |
datecancellationprinted => [ { '!=' => [ -and => ( undef, '0000-00-00' ) ] } ] |
| 571 |
} )->count, |
| 572 |
) if $orders->count; |
| 581 |
|
573 |
|
| 582 |
output_html_with_http_headers $query, $cookie, $template->output; |
574 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 583 |
- |
|
|