1 % if( $response->is_success ) {
2 <% $response->decoded_content %>
5 <% $response->error_as_HTML %>
9 my( $custnum ) = $cgi->param('custnum');
10 my $cust_main = qsearchs('cust_main', { custnum => $custnum } )
11 or die "custnum '$custnum' not found"; # just check for existence
13 my $conf = new FS::Conf;
14 my $url = $conf->config('cust_main-custom_link') . $cust_main->custnum;
17 my $curuser = $FS::CurrentUser::CurrentUser;
20 unless $curuser->access_right('View customer');
22 my $ua = new LWP::UserAgent;
23 my $response = $ua->get($url);