multiple state links in FCC report, RT#13922
[freeside.git] / FS / FS / cust_pkg.pm
index 64a8a3a..468e0eb 100644 (file)
@@ -3042,6 +3042,18 @@ sub search {
   }
 
   ###
+  # parse censustract2
+  ###
+  if ( exists($params->{'censustract2'}) =~ /^(\d*)$/ ) {
+    if ($1) {
+      push @where, "cust_main.censustract LIKE '$1%'";
+    } else {
+      push @where,
+        "( cust_main.censustract = '' OR cust_main.censustract IS NULL )";
+    }
+  }
+
+  ###
   # parse part_pkg
   ###