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