1 <% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %>
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 foreach my $cust_bill_pay ( $cust_pay->cust_bill_pay ) {
16 my $error = $cust_bill_pay->delete;
17 errorpage($error) if $error;