diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/edit/process/cust_tax_adjustment.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/edit/process/cust_tax_adjustment.html')
-rw-r--r-- | httemplate/edit/process/cust_tax_adjustment.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/httemplate/edit/process/cust_tax_adjustment.html b/httemplate/edit/process/cust_tax_adjustment.html deleted file mode 100644 index 204b5b9f7..000000000 --- a/httemplate/edit/process/cust_tax_adjustment.html +++ /dev/null @@ -1,41 +0,0 @@ -% if ( $error ) { -% $cgi->param('error', $error ); -<% $cgi->redirect($p.'cust_tax_adjustment.html?'. $cgi->query_string) %> -% } else { -<% header("Tax adjustment added") %> - <SCRIPT TYPE="text/javascript"> - //window.top.location.reload(); - parent.cClick(); - </SCRIPT> - </BODY></HTML> -% } -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Add customer tax adjustment'); - -my $error = ''; -my $conf = new FS::conf; -my $param = $cgi->Vars; - -$param->{"custnum"} =~ /^(\d+)$/ - or $error .= "Illegal customer number " . $param->{"custnum"} . " "; -my $custnum = $1; - -$param->{"amount"} =~ /^\s*(\d*(?:\.?\d{1,2}))\s*$/ - or $error .= "Illegal amount " . $param->{"amount"} . " "; -my $amount = $1; - -unless ( $error ) { - - my $cust_tax_adjustment = new FS::cust_tax_adjustment { - 'custnum' => $custnum, - 'taxname' => $param->{'taxname'}, - 'amount' => $amount, - 'comment' => $param->{'comment'}, - }; - $error = $cust_tax_adjustment->insert; - -} - -</%init> |