X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpkg_class.html;h=eb33c0fb0a31a7288d0b2a929b697cd3cc012b10;hp=7097c8617a2154845102d7e0ad804f1ded341eab;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/httemplate/browse/pkg_class.html b/httemplate/browse/pkg_class.html index 7097c8617..eb33c0fb0 100644 --- a/httemplate/browse/pkg_class.html +++ b/httemplate/browse/pkg_class.html @@ -5,8 +5,9 @@ 'disableable' => 1, 'disabled_statuspos' => 2, 'query' => { 'table' => 'pkg_class', + 'addl_from' => ' LEFT JOIN pkg_category USING (categorynum)', 'hashref' => {}, - 'extra_sql' => 'ORDER BY classnum', + 'order_by' => 'ORDER BY classnum', }, 'count_query' => $count_query, 'header' => $header, @@ -19,6 +20,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.

'. @@ -40,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' ] }