Lines 82-92
$filters->{to_placed_on} = $to_placed_on;
Link Here
|
82 |
my ( @result_order_loop, @selected_order_loop ); |
82 |
my ( @result_order_loop, @selected_order_loop ); |
83 |
my @ordernumbers = split ',', scalar $input->param('ordernumbers') || ''; |
83 |
my @ordernumbers = split ',', scalar $input->param('ordernumbers') || ''; |
84 |
if ( $op eq 'select' ) { |
84 |
if ( $op eq 'select' ) { |
|
|
85 |
|
86 |
# Set filter for 'all status' |
87 |
if ( $filters->{orderstatus} eq "any" ) { |
88 |
delete( $filters->{orderstatus} ); |
89 |
$filters->{get_canceled_order} = 1; |
90 |
} |
91 |
|
85 |
@result_order_loop = map { |
92 |
@result_order_loop = map { |
86 |
my $order = $_; |
93 |
my $order = $_; |
87 |
( grep {$_ eq $order->{ordernumber}} @ordernumbers ) ? () : $order |
94 |
( grep {$_ eq $order->{ordernumber}} @ordernumbers ) ? () : $order |
88 |
} @{ C4::Acquisition::GetHistory(%$filters) }; |
95 |
} @{ C4::Acquisition::GetHistory(%$filters) }; |
89 |
|
96 |
|
|
|
97 |
# Reset order status for 'all status' |
98 |
if ( $filters->{get_canceled_order} ) { |
99 |
$filters->{orderstatus} = "any"; |
100 |
} |
101 |
|
90 |
@selected_order_loop = |
102 |
@selected_order_loop = |
91 |
scalar @ordernumbers |
103 |
scalar @ordernumbers |
92 |
? @{ C4::Acquisition::GetHistory( ordernumbers => \@ordernumbers ) } |
104 |
? @{ C4::Acquisition::GetHistory( ordernumbers => \@ordernumbers ) } |