summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_pkg_taxproduct.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-07-24 20:33:01 -0700
committerIvan Kohler <ivan@freeside.biz>2017-07-24 20:33:01 -0700
commit07df8db4a07137e678a36b37070721566955295c (patch)
tree024f76e17cd9e03cd15122765f9b94b887fe6910 /httemplate/browse/part_pkg_taxproduct.html
parent67d171a04ecbccbfd7d5fc2f1be2810299008c15 (diff)
compliance solutions integration: import and use produce/service code catalog, RT#75262
Diffstat (limited to 'httemplate/browse/part_pkg_taxproduct.html')
-rw-r--r--httemplate/browse/part_pkg_taxproduct.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/httemplate/browse/part_pkg_taxproduct.html b/httemplate/browse/part_pkg_taxproduct.html
new file mode 100644
index 000000000..f0fd57ec3
--- /dev/null
+++ b/httemplate/browse/part_pkg_taxproduct.html
@@ -0,0 +1,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>
+