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