X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=6e90a0b4c8659f1f61ee570f473a6b7ee0f35774;hb=663b89d06a2c97fb0e7915ba409310fbefefea98;hp=8bcab0df5e27b4d55981d847937ffc4525efd5d5;hpb=8966833a87b9a002c9d72c56832e35b55628dc81;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 8bcab0df5..6e90a0b4c 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -10,6 +10,22 @@ <% ucfirst($cust_main->status) %> +% 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 } ); @@ -116,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;