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