X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_svc.html;h=3beca4d83c93cc62ae6dfa005797f327b4f1b0ef;hb=5e05724a635a22776f1b973f5d7e77989da4e048;hp=127e7abfb662f5fa41aac4b21dc88a61651a7512;hpb=75d0fe9902d6fa2d5623648c13ba3676fe462810;p=freeside.git diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 127e7abfb..3beca4d83 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -21,14 +21,28 @@ 'links' => [ $link, $link, # package? - ( map { $link_cust } + ( map { $_ ne 'Cust. Status' ? $link_cust : '' } FS::UI::Web::cust_header() ), ], + 'align' => 'rl'. FS::UI::Web::cust_aligns(), + 'color' => [ + '', + '', + FS::UI::Web::cust_colors(), + ], + 'style' => [ + '', + '', + FS::UI::Web::cust_styles(), + ], ) %> <%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('List services'); + my $addl_from = ' LEFT JOIN part_svc USING ( svcpart ) '. ' LEFT JOIN cust_pkg USING ( pkgnum ) '. ' LEFT JOIN cust_main USING ( custnum ) '; @@ -76,7 +90,7 @@ if ( length( $cgi->param('search_svc') ) ) { push @extra_sql, "svcpart = $1"; } else { - eidiot("No search term specified"); + errorpage("No search term specified"); } #here is the agent virtualization @@ -101,7 +115,7 @@ my $count_query = "SELECT COUNT(*) FROM cust_svc $addl_from $extra_sql"; my $link = sub { my $cust_svc = shift; - my $url = FS::UI::Web::svc_url( + my $url = svc_url( 'm' => $m, 'action' => 'view', #'part_svc' => $cust_svc->part_svc,