remove obsolete FCC DS0 options
authorMark Wells <mark@freeside.biz>
Tue, 24 Mar 2015 00:51:20 +0000 (17:51 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 25 Mar 2015 18:21:24 +0000 (11:21 -0700)
httemplate/browse/pkg_class.html
httemplate/edit/part_pkg.cgi
httemplate/edit/pkg_class.html

index 2aa2857..eb33c0f 100644 (file)
@@ -5,6 +5,7 @@
                  'disableable' => 1,
                  'disabled_statuspos' => 2,
                  'query'       => { 'table'     => 'pkg_class',
+                                    'addl_from' => ' LEFT JOIN pkg_category USING (categorynum)',
                                     'hashref'   => {},
                                     'order_by' => 'ORDER BY classnum',
                                   },
@@ -34,12 +35,6 @@ my $header = [ '#', 'Class' ];
 my $fields = [ 'classnum', 'classname' ];
 my $links  = [ $link, $link ];
 
-if($conf->exists('cust_main-require_censustract')) {
-    push @{$fields}, 'fcc_ds0s';
-    push @{$header}, 'FCC form 477 voice-grade equivalents';
-    push @{$links}, '';
-}
-
 my $cat_query = 'SELECT COUNT(*) FROM pkg_class where categorynum IS NOT NULL';
 my $sth = dbh->prepare($cat_query)
   or die "Error preparing $cat_query: ". dbh->errstr;
index 1702a6d..6629407 100755 (executable)
@@ -68,8 +68,6 @@
                    'svc_dst_pkgpart'  => 'Include services of package',
                    'supp_dst_pkgpart' => 'When ordering package, also order',
                    'report_option'    => 'Report classes',
-                   'fcc_ds0s'         => 'Voice-grade equivalents',
-                   'fcc_voip_class'   => 'Category',
                    'delay_start'      => 'Default delay (days)',
                  },
 
index 95c6f30..498c34a 100644 (file)
@@ -1,16 +1,4 @@
-<% include( 'elements/class_Common.html',
-              'name_singular'   => 'Package Class',
-              'table'  => 'pkg_class',
-              %opt,
-          )
-%>
-<%init>
-
-my $conf = new FS::Conf;
-
-my %opt = ();
-if($conf->exists('cust_main-require_censustract')) {
- $opt{'addl_fields'} = [ 'fcc_ds0s' ];
- $opt{'addl_labels'} = { 'fcc_ds0s' => 'FCC form 477 voice-grade equivalents' };
-}
-</%init>
+<& elements/class_Common.html,
+  'name_singular'   => 'Package Class',
+  'table'  => 'pkg_class',
+&>