[freeside-commits] branch FREESIDE_4_BRANCH updated. 36c3098e46f45fda9063419606c52881c46e209b

Ivan Kohler ivan at freeside.biz
Thu Mar 3 18:42:07 PST 2022


The branch, FREESIDE_4_BRANCH has been updated
       via  36c3098e46f45fda9063419606c52881c46e209b (commit)
      from  d3fd8a3434654a24d7022bdb7333dcebdd901578 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 36c3098e46f45fda9063419606c52881c46e209b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Mar 3 18:42:06 2022 -0800

    477 reporting

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",

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Report/FCC_477.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list