diff options
Diffstat (limited to 'httemplate/misc/unapply-cust_credit.cgi')
-rwxr-xr-x | httemplate/misc/unapply-cust_credit.cgi | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/httemplate/misc/unapply-cust_credit.cgi b/httemplate/misc/unapply-cust_credit.cgi deleted file mode 100755 index c658d2acc..000000000 --- a/httemplate/misc/unapply-cust_credit.cgi +++ /dev/null @@ -1,18 +0,0 @@ -<% - -#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; - eidiot($error) if $error; -} - -print $cgi->redirect($p. "view/cust_main.cgi?". $custnum); - -%> |