<% include( 'elements/browse.html', 'title' => 'Package categories', 'html_init' => $html_init, 'name' => 'package categories', 'disableable' => 1, 'disabled_statuspos' => 3, 'query' => { 'table' => 'pkg_category', 'hashref' => {}, 'order_by' => 'ORDER BY categorynum', }, 'count_query' => $count_query, 'header' => [ '#', 'Category', 'Weight', 'Condense' ], 'fields' => [ 'categorynum', 'categoryname', 'weight', 'condense' ], 'links' => [ $link, $link, $link, $link ], ) %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $html_init = qq!Package classes
!. 'Package categories define groups of package classes, used for sectioned invoices.
'. qq!Add a package category
!; my $count_query = 'SELECT COUNT(*) FROM pkg_category'; my $link = [ $p.'edit/pkg_category.html?', 'categorynum' ];