4 <% $cgi->redirect(popurl(2)) %>
10 unless $FS::CurrentUser::CurrentUser->access_right('Unprovision customer service')
11 && $FS::CurrentUser::CurrentUser->access_right('View/link unlinked services');
14 my($query) = $cgi->keywords;
18 #my $svc_acct = qsearchs('svc_acct',{'svcnum'=>$svcnum});
19 #die "Unknown svcnum!" unless $svc_acct;
21 my $cust_svc = qsearchs('cust_svc',{'svcnum'=>$svcnum});
22 die "Unknown svcnum!" unless $cust_svc;
23 my $cust_pkg = $cust_svc->cust_pkg;
25 errorpage( 'This account has already been audited. Cancel the '.
26 qq!<A HREF="${p}view/cust_main.cgi?!. $cust_pkg->custnum.
27 '#cust_pkg'. $cust_pkg->pkgnum. '">'.
28 'package</A> instead.');
31 my $error = $cust_svc->cancel;