blob: 91fe1c223173c9a4baacd0eae12dbc95114c5a58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
%if ( $error ) {
% errorpage($error);
%} else {
<% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %>
%}
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Unvoid');
#untaint paynum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal paynum";
my $paynum = $1;
my $cust_pay_void = qsearchs('cust_pay_void', { 'paynum' => $paynum } );
my $custnum = $cust_pay_void->custnum;
my $error = $cust_pay_void->unvoid;
</%init>
|