projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6414c4c
)
move transaction from web interface to lib code
author
ivan
<ivan>
Sat, 27 Jul 2002 03:56:44 +0000
(
03:56
+0000)
committer
ivan
<ivan>
Sat, 27 Jul 2002 03:56:44 +0000
(
03:56
+0000)
httemplate/misc/cancel-unaudited.cgi
patch
|
blob
|
history
diff --git
a/httemplate/misc/cancel-unaudited.cgi
b/httemplate/misc/cancel-unaudited.cgi
index
f1fb153
..
11cde96
100755
(executable)
--- 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';
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 ) {
if ( $error ) {
- $dbh->rollback;
%>
<!-- mason kludge -->
<%
&eidiot($error);
} else {
%>
<!-- mason kludge -->
<%
&eidiot($error);
} else {
-
- $dbh->commit or die $dbh->errstr;
-
print $cgi->redirect(popurl(2));
}
print $cgi->redirect(popurl(2));
}