summaryrefslogtreecommitdiff
path: root/httemplate/browse/tax_rate.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2008-06-18 18:50:46 +0000
committerjeff <jeff>2008-06-18 18:50:46 +0000
commit8e026f7a5e492cdc9d1d2792453b27f60fc31e03 (patch)
tree61f84295d67f0a9240279c712b3b9a6290b493bb /httemplate/browse/tax_rate.cgi
parent63f34c9c207f3925ce18658b72f4634fecaf9867 (diff)
allow enabling and disabling if tax_rate rows in groups (RT 3566)
Diffstat (limited to 'httemplate/browse/tax_rate.cgi')
-rwxr-xr-xhttemplate/browse/tax_rate.cgi17
1 files changed, 16 insertions, 1 deletions
diff --git a/httemplate/browse/tax_rate.cgi b/httemplate/browse/tax_rate.cgi
index 5d43d5939..71cfb28ac 100755
--- a/httemplate/browse/tax_rate.cgi
+++ b/httemplate/browse/tax_rate.cgi
@@ -3,6 +3,7 @@
'name_singular' => 'tax rate',
'menubar' => \@menubar,
'html_init' => $html_init,
+ 'html_form' => $html_form,
'query' => {
'table' => 'tax_rate',
'hashref' => $hashref,
@@ -179,7 +180,6 @@ if ($tax_type || $tax_cat ) {
$cgi->delete('tax_type');
$cgi->delete('tax_cat');
-
if ( $geocode || $taxclassnum ) {
push @menubar, 'View all tax rates' => $p.'browse/tax_rate.cgi';
}
@@ -193,6 +193,21 @@ $cgi->param('taxclassnum', $taxclassnum ) if $taxclassnum;
$cgi->param('tax_type', $tax_type ) if $tax_type;
$cgi->param('tax_cat', $tax_cat ) if $tax_cat;
+my $html_form = include('/elements/init_overlib.html'). '<BR><BR>'.
+ join(' ',
+ map {
+ include('/elements/popup_link.html',
+ {
+ 'action' => $p. "misc/enable_or_disable_tax.html?action=$_&".
+ $cgi->query_string,
+ 'label' => ucfirst($_). ' all these taxes',
+ 'actionlabel' => ucfirst($_). ' taxes',
+ },
+ );
+ }
+ qw(disable enable)
+ );
+
my $hashref = {};
my $extra_sql = '';
if ( $data_vendor ) {