diff options
Diffstat (limited to 'httemplate/misc/unapply-cust_credit.cgi')
-rwxr-xr-x | httemplate/misc/unapply-cust_credit.cgi | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/httemplate/misc/unapply-cust_credit.cgi b/httemplate/misc/unapply-cust_credit.cgi deleted file mode 100755 index ed739ac1b..000000000 --- a/httemplate/misc/unapply-cust_credit.cgi +++ /dev/null @@ -1,20 +0,0 @@ -<% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %> -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Unapply credit'); - -#untaint crednum -my($query) = $cgi->keywords; -$query =~ /^(\d+)$/ || die "Illegal crednum"; -my $crednum = $1; - -my $cust_credit = qsearchs('cust_credit', { 'crednum' => $crednum } ); -my $custnum = $cust_credit->custnum; - -foreach my $cust_credit_bill ( $cust_credit->cust_credit_bill ) { - my $error = $cust_credit_bill->delete; - errorpage($error) if $error; -} - -</%init> |