add customer status to advanced package report, RT#24631
[freeside.git] / FS / FS / cust_pkg.pm
index 0cb1b50..066b987 100644 (file)
@@ -4179,6 +4179,14 @@ sub search {
   }
 
   ##
+  # parse cust_status
+  ##
+
+  if ( $params->{'cust_status'} =~ /^([a-z]+)$/ ) {
+    push @where, FS::cust_main->cust_status_sql . " = '$1' ";
+  }
+
+  ##
   # parse customer sales person
   ##