X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=6e90a0b4c8659f1f61ee570f473a6b7ee0f35774;hb=3e8635e9b88abdd5da862870184d9318c076933c;hp=b98e9dc3ef205444be6ddf85d51b7e0ba088f7e9;hpb=259921ee5e89a68fc79b2a358643c558ebb4fdaa;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index b98e9dc3e..6e90a0b4c 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -10,7 +10,24 @@ <% ucfirst($cust_main->status) %> -%unless ( scalar(@agentnums) == 1 ) { +% my @part_tag = $cust_main->part_tag; +% if ( $conf->config('cust_tag-location') =~ /^(cust_misc|)$/ && @part_tag ) { + + Tags + +% foreach my $part_tag ( @part_tag ) { + tagcolor) + ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"' + : '' %> + ><% $part_tag->tagname.': '. $part_tag->tagdesc |h %> +
+% } + + +% } + +%unless ( scalar(@agentnums) == 1 +% && !$curuser->access_right('View customers of all agents') ) { % my $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } ); Agent @@ -115,6 +132,8 @@ my( $cust_main ) = @_; my $conf = new FS::Conf; my $date_format = ($conf->config('date_format') || "%m/%d/%Y"); -my @agentnums = $FS::CurrentUser::CurrentUser->agentnums; +my $curuser = $FS::CurrentUser::CurrentUser; + +my @agentnums = $curuser->agentnums;