Lines 556-570
if ($StaffDetailItemSelection) {
Link Here
|
556 |
my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); |
556 |
my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); |
557 |
my @deletedorders_using_biblio; |
557 |
my @deletedorders_using_biblio; |
558 |
my @orders_using_biblio; |
558 |
my @orders_using_biblio; |
559 |
my @baskets_deletedorders; |
|
|
560 |
|
559 |
|
561 |
foreach my $myorder (@allorders_using_biblio) { |
560 |
foreach my $myorder (@allorders_using_biblio) { |
562 |
my $basket = $myorder->{'basketno'}; |
561 |
my $basket = $myorder->{'basketno'}; |
563 |
if ((defined $myorder->{'datecancellationprinted'}) and ($myorder->{'datecancellationprinted'} ne '0000-00-00') ){ |
562 |
if ((defined $myorder->{'datecancellationprinted'}) and ($myorder->{'datecancellationprinted'} ne '0000-00-00') ){ |
564 |
push @deletedorders_using_biblio, $myorder; |
563 |
push @deletedorders_using_biblio, $myorder; |
565 |
unless (grep{ $_ eq $basket } @baskets_deletedorders){ |
|
|
566 |
push @baskets_deletedorders,$myorder->{'basketno'}; |
567 |
} |
568 |
} |
564 |
} |
569 |
else { |
565 |
else { |
570 |
push @orders_using_biblio, $myorder; |
566 |
push @orders_using_biblio, $myorder; |
Lines 579-584
$template->param (countorders => $count_orders_using_biblio);
Link Here
|
579 |
my $count_deletedorders_using_biblio = scalar @deletedorders_using_biblio ; |
575 |
my $count_deletedorders_using_biblio = scalar @deletedorders_using_biblio ; |
580 |
$template->param (countdeletedorders => $count_deletedorders_using_biblio); |
576 |
$template->param (countdeletedorders => $count_deletedorders_using_biblio); |
581 |
|
577 |
|
582 |
$template->param (basketsdeletedorders => \@baskets_deletedorders); |
|
|
583 |
|
584 |
output_html_with_http_headers $query, $cookie, $template->output; |
578 |
output_html_with_http_headers $query, $cookie, $template->output; |