1 <% $cgi->redirect($p. "view/cust_main.cgi?custnum=". $custnum. ";show=payment_history") %>
5 unless $FS::CurrentUser::CurrentUser->access_right('Unapply payment');
8 my($query) = $cgi->keywords;
9 $query =~ /^(\d+)$/ || die "Illegal paynum";
12 my $cust_pay = qsearchs('cust_pay', { 'paynum' => $paynum } );
13 my $custnum = $cust_pay->custnum;
15 my $error = $cust_pay->unapply_refund;
16 errorpage($error) if $error;