compliance solutions integration: import and use produce/service code catalog, RT...
[freeside.git] / httemplate / browse / part_pkg_taxproduct.html
1 <& elements/browse.html,
2   'name_singular'  => 'tax product',
3   #'html_form'      => include('.form', $category_code),
4   'query'          => {
5                         'table'     => 'part_pkg_taxproduct',
6                         'hashref'   => $hashref,
7                         'order_by'  => 'ORDER BY taxproduct',
8                       },
9   'count_query'    => $count_query,
10   'header'         => \@header,
11   'fields'         => \@fields,
12   'align'          => $align,
13 &>
14 <%init>
15
16 die "access denied"
17   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
18
19 my $hashref = {};
20
21 my $taxproduct = '%';
22
23 $hashref->{taxproduct} = { op => 'LIKE', value => $taxproduct };
24
25 my $count_query = "SELECT COUNT(*) FROM part_pkg_taxproduct ".
26                   "WHERE data_vendor = 'compliance_solutions' AND ".
27                   "taxproduct LIKE '$taxproduct'";
28
29 my @fields = (
30   'data_vendor',
31   'taxproduct',
32   'description',
33 #  'note'
34 );
35
36 my @header = (
37   'Vendor',
38   'Code',
39   'Description',
40 #  '',
41 );
42
43 my $align = 'lll';
44
45
46
47 </%init>
48