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