4 <% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %>
9 unless $FS::CurrentUser::CurrentUser->access_right('Cancel customer package later');
11 my ($pkgnum) = $cgi->keywords;
12 my $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } );
13 my $error = "No package $pkgnum" unless $cust_pkg;
15 $error ||= $cust_pkg->unexpire;