fix bug specifying an HTML return address separately
[freeside.git] / httemplate / misc / unvoid-cust_pay_void.cgi
1 %
2 %
3 %#untaint paynum
4 %my($query) = $cgi->keywords;
5 %$query =~ /^(\d+)$/ || die "Illegal paynum";
6 %my $paynum = $1;
7 %
8 %my $cust_pay_void = qsearchs('cust_pay_void', { 'paynum' => $paynum } );
9 %my $custnum = $cust_pay_void->custnum;
10 %
11 %my $error = $cust_pay_void->unvoid;
12 %errorpage($error) if $error;
13 %
14 %print $cgi->redirect($p. "view/cust_main.cgi?". $custnum);
15 %
16 %
17