populate MAC address from inventory for svc_phone devices, RT7794
[freeside.git] / httemplate / misc / unadjourn_pkg.cgi
1 %if ( $error ) {
2 %  errorpage($error);
3 %} else {
4 <% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %>
5 %}
6 <%init>
7
8 die "access denied"
9   unless $FS::CurrentUser::CurrentUser->access_right('Suspend customer package later');
10
11 my ($pkgnum) = $cgi->keywords;
12 my $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } );
13 my $error = "No package $pkgnum" unless $cust_pkg;
14
15 $error ||= $cust_pkg->unadjourn;
16
17 </%init>