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