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