X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fcancel-unaudited.cgi;h=8f31db8383fad980fd192434f1c899c9aef0a1f1;hp=5d3c8731617a39f19ec9de9787a4f68d795b70b4;hb=8068d7c9cca24c3517ea46f1addf412a9d362de9;hpb=e8dc13cd1af07846cd3015986f3a3fd34cdcdaea diff --git a/httemplate/misc/cancel-unaudited.cgi b/httemplate/misc/cancel-unaudited.cgi index 5d3c87316..8f31db838 100755 --- a/httemplate/misc/cancel-unaudited.cgi +++ b/httemplate/misc/cancel-unaudited.cgi @@ -25,11 +25,8 @@ local $SIG{TSTP} = 'IGNORE'; local $FS::UID::AutoCommit = 0; my $error = $svc_acct->cancel; -&myeidiot($error) if $error; -$error = $svc_acct->delete; -&myeidiot($error) if $error; - -$error = $cust_svc->delete; +$error ||= $svc_acct->delete; +$error ||= $cust_svc->delete; if ( $error ) { $dbh->rollback;