diff options
author | Ivan Kohler <ivan@freeside.biz> | 2022-03-03 18:42:06 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2022-03-03 18:42:06 -0800 |
commit | 36c3098e46f45fda9063419606c52881c46e209b (patch) | |
tree | deccc61359da09fc47b1a47169a742971fd04a91 | |
parent | d3fd8a3434654a24d7022bdb7333dcebdd901578 (diff) |
477 reporting
-rw-r--r-- | FS/FS/Report/FCC_477.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/Report/FCC_477.pm b/FS/FS/Report/FCC_477.pm index 760f6f2..0f5d4ce 100644 --- a/FS/FS/Report/FCC_477.pm +++ b/FS/FS/Report/FCC_477.pm @@ -398,7 +398,7 @@ sub fbs_sql { my $agentnum = $opt{agentnum}; my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)'; - my $censustract = "replace(cust_location.censustract, '.', '')"; + my $censustract = "substr( replace(cust_location.censustract, '.', ''), 1, 11)"; my @select = ( "$censustract AS censustract", @@ -473,7 +473,7 @@ sub fvs_sql { my $date = $opt{date} || time; my $agentnum = $opt{agentnum}; my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)'; - my $censustract = "replace(cust_location.censustract, '.', '')"; + my $censustract = "substr( replace(cust_location.censustract, '.', ''), 1, 11)"; my @select = ( "$censustract AS censustract", |