contractually guaranteed speed no longer required as of 2020, RT#85671
authorIvan Kohler <ivan@freeside.biz>
Thu, 18 Mar 2021 05:16:16 +0000 (22:16 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 18 Mar 2021 05:16:16 +0000 (22:16 -0700)
FS/FS/Report/FCC_477.pm
httemplate/edit/deploy_zone-fixed.html
httemplate/elements/tr-note.html [new file with mode: 0644]
httemplate/search/477.html

index 75ddee0..bb01db4 100644 (file)
@@ -365,10 +365,12 @@ sub fbd_sql {
     'adv_speed_down',
     'adv_speed_up',
     'CASE WHEN is_business IS NOT NULL THEN 1 ELSE 0 END',
-    'cir_speed_down',
-    'cir_speed_up',
   );
-  push @select, 'blocknum' if $opt{detail};
+  push @select, 'cir_speed_down', 'cir_speed_up'
+    if $opt{date} < 1569826800; #9/30/2019, halfway between the two filing
+                                # "as of" dates when it changed
+  push @select, 'blocknum'
+    if $opt{detail};
 
   my $from = 'deploy_zone_block
     JOIN deploy_zone USING (zonenum)
index ce98c46..fd13854 100644 (file)
@@ -62,6 +62,9 @@
         'adv_speed_up',
         { type => 'tablebreak-tr-title',
           value => 'Contractually guaranteed speed (Mbps)' },
+        { type => 'note',
+          value => 'Only required for filings as of June 30th, 2019 (due Sep. 3rd, 2019) and before',
+        },
         'cir_speed_down',
         'cir_speed_up',
         { type => 'tablebreak-tr-title', value => 'Footprint'},
diff --git a/httemplate/elements/tr-note.html b/httemplate/elements/tr-note.html
new file mode 100644 (file)
index 0000000..8493e5a
--- /dev/null
@@ -0,0 +1,12 @@
+<TR>
+  <TD COLSPAN=<% $opt{colspan} || 2 %> ALIGN="left" <%$id%>>
+    <I><% $opt{value} %></I>
+  </TD>
+</TR>
+
+<%init>
+
+my %opt = @_;
+my $id = 'ID="'.$opt{id}.'"' if $opt{id};
+
+</%init>
index 84fd7fb..9a41261 100644 (file)
@@ -67,6 +67,9 @@ a.download {
     <a class="download" href="<% $cgi->self_url %>">Download</a>
   </caption>
 %   my $header = ".header_$partname";
+%   $header .= '_old' if $partname eq 'fbd' && $date < 1569826800; #9/30/2019
+%              # ( halfway between the two filing "as of" dates when it changed
+
 %   my $data = $this_part->{data};
 %   my $error = $this_part->{error};
   <thead>
@@ -168,7 +171,7 @@ if ( $cgi->param('type') eq 'csv' ) {
 my $part_titles = FS::Report::FCC_477->parts;
 
 </%init>
-<%def .header_fbd>
+<%def .header_fbd_old>
   <TR CLASS="head">
     <TD ROWSPAN=2>Census Block</TD>
     <TD ROWSPAN=2>DBA Name</TD>
@@ -185,6 +188,20 @@ my $part_titles = FS::Report::FCC_477->parts;
     <TD>Up</TD>
   </TR>
 </%def>
+<%def .header_fbd>
+  <TR CLASS="head">
+    <TD ROWSPAN=2>Census Block</TD>
+    <TD ROWSPAN=2>DBA Name</TD>
+    <TD ROWSPAN=2>Technology</TD>
+    <TD ROWSPAN=2>Consumer?</TD>
+    <TD COLSPAN=2>Advertised Speed (Mbps)</TD>
+    <TD ROWSPAN=2>Business?</TD>
+  </TR>
+  <TR CLASS="subhead">
+    <TD>Down</TD>
+    <TD>Up</TD>
+  </TR>
+</%def>
 <%def .header_fbs>
   <TR CLASS="head">
     <TD ROWSPAN=2>Census Tract</TD>