blob: 983a79da5eec3aba74be91f9dce51a9aed9f30d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
% if ( $error ) {
% errorpage($error);
% } else {
<% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %>
% }
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Delete refund');
#untaint refundnum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal refundnum";
my $refundnum = $1;
my $cust_refund = qsearchs('cust_refund',{'refundnum'=>$refundnum});
my $custnum = $cust_refund->custnum;
my $error = $cust_refund->delete;
</%init>
|