summaryrefslogtreecommitdiff
path: root/FS/FS/Report
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2022-03-03 18:42:09 -0800
committerIvan Kohler <ivan@freeside.biz>2022-03-03 18:42:09 -0800
commitfa7b2d94bff0db0059d989d64430cd1b59a93b55 (patch)
treea8ce8b7017946eb82d6539be28d7c0253470face /FS/FS/Report
parent2a32e71ba4df776097e02d4d5ede35b214d206e6 (diff)
477 reporting
Diffstat (limited to 'FS/FS/Report')
-rw-r--r--FS/FS/Report/FCC_477.pm4
1 files changed, 2 insertions, 2 deletions
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",