diff options
author | ivan <ivan> | 2002-07-27 03:56:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-07-27 03:56:44 +0000 |
commit | 21b3f9beaa73e13f7d5499c4852192594d20f5fb (patch) | |
tree | 2782f500b118483af89b87d08582289d02c8b219 /httemplate/misc | |
parent | 6414c4c23d3fac2012d1524f17c0aae5e5012935 (diff) |
move transaction from web interface to lib code
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-x | httemplate/misc/cancel-unaudited.cgi | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/httemplate/misc/cancel-unaudited.cgi b/httemplate/misc/cancel-unaudited.cgi index f1fb15341..11cde968d 100755 --- a/httemplate/misc/cancel-unaudited.cgi +++ b/httemplate/misc/cancel-unaudited.cgi @@ -17,30 +17,14 @@ die "Unknown svcnum!" unless $cust_svc; qq!pkgnum"> package</A> instead.!) if $cust_svc->pkgnum ne '' && $cust_svc->pkgnum ne '0'; -my $svc_x = $cust_svc->svc_x; - -local $SIG{HUP} = 'IGNORE'; -local $SIG{INT} = 'IGNORE'; -local $SIG{QUIT} = 'IGNORE'; -local $SIG{TERM} = 'IGNORE'; -local $SIG{TSTP} = 'IGNORE'; - -local $FS::UID::AutoCommit = 0; - -my $error = $svc_x->cancel; -$error ||= $svc_x->delete; -$error ||= $cust_svc->delete; +my $error = $cust_svc->cancel; if ( $error ) { - $dbh->rollback; %> <!-- mason kludge --> <% &eidiot($error); } else { - - $dbh->commit or die $dbh->errstr; - print $cgi->redirect(popurl(2)); } |