Rechnungsmaske: "Drucken und Buchen" und Browser-Zurück entschärfen
[kivitendo-erp.git] / SL / DB / Manager / Project.pm
index f6ff127..2cc50f2 100644 (file)
@@ -27,9 +27,13 @@ __PACKAGE__->add_filter_specs(
   },
   status => sub {
     my ($key, $value, $prefix) = @_;
-    return () if $value eq 'all';
+    return () if $value ne 'orphaned';
     return __PACKAGE__->is_not_used_filter($prefix);
   },
+  all => sub {
+    my ($key, $value, $prefix) = @_;
+    return or => [ map { $prefix . $_ => $value } qw(projectnumber description customer.name) ]
+  }
 );
 
 our %project_id_column_prefixes = (
@@ -48,6 +52,8 @@ sub _sort_spec {
       SIMPLE       => 'ALL',
       customer     => 'customer.name',
       project_type => 'project_type.description',
+      project_status => 'project_status.description',
+      customer_and_description => [ qw(customer.name project.description) ],
     });
 }