X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fbulk-cust_main_county.html;h=8e447e54f976096070ba913fd3a9b71a69d61c09;hb=dd65ba99bb9281571f19744154a3b03bcd3f01ab;hp=bb57fc5d3c14d3ab82efaae6510ad4cc5ef39298;hpb=9eded70a59f22d7df3b645ad3636e28e0fd08bee;p=freeside.git diff --git a/httemplate/edit/bulk-cust_main_county.html b/httemplate/edit/bulk-cust_main_county.html index bb57fc5d3..8e447e54f 100644 --- a/httemplate/edit/bulk-cust_main_county.html +++ b/httemplate/edit/bulk-cust_main_county.html @@ -1,7 +1,8 @@ -<% include('/elements/header-popup.html', 'Bulk Tax rate') %> +<% include('/elements/header-popup.html', $title ) %>
" METHOD="POST"> + @@ -68,7 +69,7 @@
- + <%init> @@ -78,16 +79,13 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my @taxnum; -if ( $cgi->param('error') ) { - $cgi->param('taxnum') =~ /^([\d,]+)$/ - or die "no taxnum, but error: ". $cgi->param('error'); - @taxnum = split(',', $1); -} else { - my($query) = $cgi->keywords; - $query =~ /^([\d,]+)$/ - or die 'Nothing selected'; #XXX better error when nothing selected - @taxnum = split(',', $1); -} +$cgi->param('taxnum') =~ /^([\d,]+)$/ + or $m->comp('/elements/errorpage-popup.html', $cgi->param('error') || 'Nothing selected'); +my @taxnum = split(',', $1); + +$cgi->param('action') =~ /^(add|edit)$/ or die "unknown action"; +my $action = $1; +my $title = "Bulk $action tax rate"; my @cust_main_county = map {