4 <% $cgi->redirect($p. "view/svc_phone.cgi?". $svcnum) %>
8 # :/ needs agent-virt so you can't futz with arbitrary devices
11 unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
14 my($query) = $cgi->keywords;
15 $query =~ /^(\d+)$/ || die "Illegal devicenum";
18 my $phone_device = qsearchs('phone_device', { 'devicenum' => $devicenum } );
19 my $svcnum = $phone_device->svcnum;
21 my $error = $phone_device->delete;