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