1 <% include('/elements/header-popup.html', ucfirst($action). ' Tax Rates') %>
2 <% include('/elements/error.html') %>
4 <FORM ACTION="<% popurl(1) %>process/enable_or_disable_tax.html" METHOD=POST>
5 <INPUT TYPE="hidden" NAME="action" VALUE="<% $action %>">
6 <INPUT TYPE="hidden" NAME="data_vendor" VALUE="<% $cgi->param('data_vendor') %>">
7 <INPUT TYPE="hidden" NAME="geocode" VALUE="<% $cgi->param('geocode') %>">
8 <INPUT TYPE="hidden" NAME="taxclassnum" VALUE="<% $cgi->param('taxclassnum') %>">
9 <INPUT TYPE="hidden" NAME="tax_type" VALUE="<% $cgi->param('tax_type') %>">
10 <INPUT TYPE="hidden" NAME="tax_cat" VALUE="<% $cgi->param('tax_cat') %>">
11 <INPUT TYPE="hidden" NAME="showdisabled" VALUE="<% $cgi->param('showdisabled') |h %>">
13 This will <B><% $action %></B> <% $count %> tax
14 <% $count == 1 ? 'rate' : 'rates' %>. Are you <B>certain</B> you want to do
16 <BR><BR><INPUT TYPE="submit" VALUE="Yes">
22 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
25 if ( $cgi->param('action') =~ /^(\w+)$/ ) {
29 my ($query, $count_query) = FS::tax_rate::browse_queries(scalar($cgi->Vars));
31 my $count_sth = dbh->prepare($count_query)
32 or die "Error preparing $count_query: ". dbh->errstr;
34 or die "Error executing $count_query: ". $count_sth->errstr;
35 my $count = $count_sth->fetchrow_arrayref->[0];