1 <% include( 'elements/browse.html',
2 'title' => 'Package categories',
3 'html_init' => $html_init,
4 'name' => 'package categories',
6 'disabled_statuspos' => 3,
7 'query' => { 'table' => 'pkg_category',
9 'extra_sql' => 'ORDER BY categorynum',
11 'count_query' => $count_query,
12 'header' => [ '#', 'Category', 'Weight', 'Condense' ],
13 'fields' => [ 'categorynum', 'categoryname', 'weight', 'condense' ],
14 'links' => [ $link, $link, $link, $link ],
21 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
24 qq!<A HREF="${p}browse/pkg_class.html">Package classes</A><BR><BR>!.
25 'Package categories define groups of package classes, used for sectioned invoices.<BR><BR>'.
26 qq!<A HREF="${p}edit/pkg_category.html"><I>Add a package category</I></A><BR><BR>!;
28 my $count_query = 'SELECT COUNT(*) FROM pkg_category';
30 my $link = [ $p.'edit/pkg_category.html?', 'categorynum' ];