summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2009-06-30 19:38:57 +0000
committerivan <ivan>2009-06-30 19:38:57 +0000
commit443150b6184876c967adffa199c20f53d5b76075 (patch)
tree69cb79e2d3e8dc593916f81c24c60f55e9eba937 /httemplate/browse
parenta70239efdaeddf0b20fea7f5126a2e3f0a962eb6 (diff)
disabling a taxclass, RT#5472
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/part_pkg_taxclass.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/browse/part_pkg_taxclass.html b/httemplate/browse/part_pkg_taxclass.html
new file mode 100644
index 000000000..04e0e23d6
--- /dev/null
+++ b/httemplate/browse/part_pkg_taxclass.html
@@ -0,0 +1,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>