<% include('/elements/header-popup.html', ucfirst($action). ' Tax Rates') %> <% include('/elements/error.html') %>
This will <% $action %> <% $count %> tax <% $count == 1 ? 'rate' : 'rates' %>. Are you certain you want to do this?

<%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $action = ''; if ( $cgi->param('action') =~ /^(\w+)$/ ) { $action = $1; } my ($query, $count_query) = FS::tax_rate::browse_queries(scalar($cgi->Vars)); my $count_sth = dbh->prepare($count_query) or die "Error preparing $count_query: ". dbh->errstr; $count_sth->execute or die "Error executing $count_query: ". $count_sth->errstr; my $count = $count_sth->fetchrow_arrayref->[0];