X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpkg_class.html;h=eb33c0fb0a31a7288d0b2a929b697cd3cc012b10;hp=f3e23649655fdcf12c64dc343bf390eca6dc0882;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/browse/pkg_class.html b/httemplate/browse/pkg_class.html index f3e236496..eb33c0fb0 100644 --- a/httemplate/browse/pkg_class.html +++ b/httemplate/browse/pkg_class.html @@ -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; @@ -48,7 +43,7 @@ $sth->execute if ($sth->fetchrow_arrayref->[0]) { push @$header, 'Category'; push @$fields, 'categoryname'; - push @$links, $link; + push @$links, [ $p.'edit/pkg_category.html?', 'categorynum' ] }