diff options
author | cvs2git <cvs2git> | 2003-04-01 06:55:02 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2003-04-01 06:55:02 +0000 |
commit | 401acedbab35a198218e3e09f5445e1e5163ee9c (patch) | |
tree | 5c1ed0dcff79da94fc3e095bbcf40b1741005846 | |
parent | d32d042f8a318c47a3d1d958409374b58181e79d (diff) | |
parent | 26deea8eb085dcb06295e6795f72f2844bcd3fe1 (diff) |
This commit was manufactured by cvs2svn to create branch
'FREESIDE_1_4_BRANCH'.
-rwxr-xr-x | httemplate/misc/cust_main-cancel.cgi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi new file mode 100755 index 000000000..526e128a4 --- /dev/null +++ b/httemplate/misc/cust_main-cancel.cgi @@ -0,0 +1,16 @@ +<% + +#untaint custnum +my($query) = $cgi->keywords; +$query =~ /^(\d+)$/ || die "Illegal custnum"; +my $custnum = $1; + +my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); + +my $error = $cust_main->cancel; +eidiot($error) if $error; + +#print $cgi->redirect($p. "view/cust_main.cgi?". $cust_main->custnum); +print $cgi->redirect($p); + +%> |