blob: 356b49cb318cbbf5b6ae0dcf3c49c4b4fee92368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
%if ( $error ) {
% errorpage($error);
%} else {
<% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %>
%}
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Suspend customer package later');
my ($pkgnum) = $cgi->keywords;
my $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } );
my $error = "No package $pkgnum" unless $cust_pkg;
$error ||= $cust_pkg->unadjourn;
</%init>
|