Finanzcontrollingbericht: ungültige und inaktive Projekte herausfiltern
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 25 Feb 2013 09:09:39 +0000 (10:09 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 17 Dec 2013 13:37:29 +0000 (14:37 +0100)
SL/Controller/FinancialControllingReport.pm

index 8cfb3c7..e57599a 100644 (file)
@@ -70,6 +70,12 @@ sub setup_db_args_for_list {
   $args{query} = [
     @{ $args{query} || [] },
     SL::DB::Manager::Order->type_filter('sales_order'),
+    or => [
+      globalproject_id => undef,
+      and              => [
+        'globalproject.active' => 1,
+        'globalproject.valid'  => 1,
+      ]],
   ];
 
   return \%args;