4 <% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %>
9 unless $FS::CurrentUser::CurrentUser->access_right('Delete credit');
12 my($query) = $cgi->keywords;
13 $query =~ /^(\d+)$/ || die "Illegal crednum";
16 my $cust_credit = qsearchs('cust_credit',{'crednum'=>$crednum});
17 my $custnum = $cust_credit->custnum;
19 my $error = $cust_credit->delete;