summaryrefslogtreecommitdiff
path: root/httemplate/misc/susp_pkg.cgi
blob: 4a19fa83061e54e1a6be27c3b6750e7f6d77fac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%

#untaint pkgnum
my ($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal pkgnum";
my $pkgnum = $1;

my $cust_pkg = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});

my $error = $cust_pkg->suspend;
&eidiot($error) if $error;

print $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum'));

%>