summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_pkg_taxclass.html
blob: 04e0e23d6aa7de3208a087f935fbd9ad7c0d6a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<% include( 'elements/browse.html',
                 'title'         => 'Tax Classes',
                 'name_singular' => 'tax class',
                 'menubar'       => [ 'Add a new tax class' =>
                                        $p.'edit/part_pkg_taxclass.html',
                                    ],
                 'query'         => { 'table' => 'part_pkg_taxclass', },
                 'count_query'   => 'SELECT COUNT(*) FROM part_pkg_taxclass',
                 'header'        => [ '#', 'Device type' ],
                 'fields'        => [ 'taxclassnum',
                                      'taxclass',
                                    ],
                 'links'         => [ $link,
                                      $link,
                                    ],
                 'disableable'   => 1,
                 'disabled_statuspos' => 1,
             )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $link = [ "${p}edit/part_pkg_taxclass.html?", 'taxclassnum' ];

</%init>