summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pkg.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-08-18 01:15:41 +0000
committerivan <ivan>2011-08-18 01:15:41 +0000
commit150756fc304002a15fee61d622c230494f814ba6 (patch)
treef43d1782f9a755f5e82cc2f66d0fac4b78bad6c8 /FS/FS/cust_pkg.pm
parent11b383e074fe5f30d78ac842181c413160b13056 (diff)
multiple state links in FCC report, RT#13922
Diffstat (limited to 'FS/FS/cust_pkg.pm')
-rw-r--r--FS/FS/cust_pkg.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 64a8a3a..468e0eb 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -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
###