[freeside-commits] freeside/httemplate/browse pkg_class.html, 1.7.4.1, 1.7.4.2

Erik Levinson levinse at wavetail.420.am
Wed Jun 22 18:56:23 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv28818/httemplate/browse

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	pkg_class.html 
Log Message:
add optional fcc_ds0s to pkg_class, RT13057

Index: pkg_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/pkg_class.html,v
retrieving revision 1.7.4.1
retrieving revision 1.7.4.2
diff -u -w -d -r1.7.4.1 -r1.7.4.2
--- pkg_class.html	11 Nov 2010 01:44:49 -0000	1.7.4.1
+++ pkg_class.html	23 Jun 2011 01:56:21 -0000	1.7.4.2
@@ -19,6 +19,8 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
+my $conf = new FS::Conf;
+
 my $html_init = 
   'Package classes define groups of packages, for taxation, ordering '.
   'convenience and reporting.<BR><BR>'.
@@ -32,6 +34,12 @@
 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;



More information about the freeside-commits mailing list