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