summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_pkg_taxproduct.html
blob: f0fd57ec301eaa2bd20c64cbba837b9f7cdf0122 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<& elements/browse.html,
  'name_singular'  => 'tax product',
  #'html_form'      => include('.form', $category_code),
  'query'          => {
                        'table'     => 'part_pkg_taxproduct',
                        'hashref'   => $hashref,
                        'order_by'  => 'ORDER BY taxproduct',
                      },
  'count_query'    => $count_query,
  'header'         => \@header,
  'fields'         => \@fields,
  'align'          => $align,
&>
<%init>

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

my $hashref = {};

my $taxproduct = '%';

$hashref->{taxproduct} = { op => 'LIKE', value => $taxproduct };

my $count_query = "SELECT COUNT(*) FROM part_pkg_taxproduct ".
                  "WHERE data_vendor = 'compliance_solutions' AND ".
                  "taxproduct LIKE '$taxproduct'";

my @fields = (
  'data_vendor',
  'taxproduct',
  'description',
#  'note'
);

my @header = (
  'Vendor',
  'Code',
  'Description',
#  '',
);

my $align = 'lll';



</%init>