-sub setup_db_args_for_list {
-  my ($self) = @_;
-
-  $self->{filter} = {};
-  my %args     = ( parse_filter($::form->{filter}, with_objects => [ 'customer', 'globalproject', 'globalproject.project_type' ], launder_to => $self->{filter}));
-  $args{query} = [
-    @{ $args{query} || [] },
-    SL::DB::Manager::Order->type_filter('sales_order'),
-    '!closed' => 1,
-    or        => [
-      globalproject_id => undef,
-      and              => [
-        'globalproject.active' => 1,
-        'globalproject.valid'  => 1,
-      ]],
-  ];
-
-  return \%args;
-}
-