[freeside-commits] freeside/httemplate/browse pkg_class.html, 1.8, 1.9
Erik Levinson
levinse at wavetail.420.am
Wed Jun 22 18:55:53 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv28813/httemplate/browse
Modified Files:
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.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- pkg_class.html 11 Nov 2010 01:44:43 -0000 1.8
+++ pkg_class.html 23 Jun 2011 01:55:51 -0000 1.9
@@ -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