summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/bulk-cust_main_county.html
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2010-12-27 00:04:45 +0000
committercvs2git <cvs2git>2010-12-27 00:04:45 +0000
commitc82d349f864e6bd9f96fd1156903bc1f7193a203 (patch)
treee117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/edit/process/bulk-cust_main_county.html
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/edit/process/bulk-cust_main_county.html')
-rw-r--r--httemplate/edit/process/bulk-cust_main_county.html66
1 files changed, 0 insertions, 66 deletions
diff --git a/httemplate/edit/process/bulk-cust_main_county.html b/httemplate/edit/process/bulk-cust_main_county.html
deleted file mode 100644
index af9e49500..000000000
--- a/httemplate/edit/process/bulk-cust_main_county.html
+++ /dev/null
@@ -1,66 +0,0 @@
-% if ( $error ) { #better to redirect back to
-%# <% $cgi->redirect("$url?". $cgi->query_string ) %>
- <% include('/elements/header-popup.html', "Error ${action}ing taxes" ) %>
-
- <FONT SIZE="+1" COLOR="#ff0000">Error: <% $error |h %></FONT>
- <BR><BR>
-
- </BODY>
- </HTML>
-
-% } else {
- <% include('/elements/header-popup.html', "Taxes ${action}ed") %>
-
- <SCRIPT TYPE="text/javascript">
- window.top.location.reload();
- </SCRIPT>
-
- </BODY>
- </HTML>
-% }
-<%init>
-
-$cgi->param('taxnum') =~ /^([\d,]+)$/
- or die 'Guru Meditation #69'; #??? should have been passed in
-my @taxnum = split(',', $1);
-
-$cgi->param('action') =~ /^(add|edit)$/ or die "unknown action";
-my $action = $1;
-
-my $error = '';
-foreach my $taxnum ( @taxnum ) {
-
- my $cust_main_county = qsearchs('cust_main_county', { 'taxnum' => $taxnum } )
- or die "unknown taxnum: $taxnum";
-
- if ( $action eq 'edit' || $cust_main_county->tax == 0 ) { #let's replace
-
- foreach (qw( taxname tax exempt_amount setuptax recurtax )) {
- $cust_main_county->set( $_ => scalar($cgi->param($_)) )
- }
-
- $error = $cust_main_county->replace and last;
-
- } else { #let's insert a new record
-
- my $new =
- new FS::cust_main_county {
- ( map { $_ => scalar($cgi->param($_)) }
- qw( taxname tax exempt_amount setuptax recurtax )
- ),
- ( map { $_ => $cust_main_county->get($_) }
- qw( country state county taxclass )
- )
- };
-
- $error = $new->insert and last;
-
- }
-
-}
-
-if ( $error ) {
- $cgi->param('error', $error);
-}
-
-</%init>