X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FReport%2FFCC_477.pm;h=0f5d4cedc89433af0430cf302fc234400a24609e;hb=10dbf48db68e0ca9264865cb98c24cb05c104824;hp=760f6f22daf5d16e1e03ed6dff969cc09365d7bf;hpb=b0888dc8399fc4e8d75c874c00d01366eacf5596;p=freeside.git diff --git a/FS/FS/Report/FCC_477.pm b/FS/FS/Report/FCC_477.pm index 760f6f22d..0f5d4cedc 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",