X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb%2Fsmall_custview.pm;h=36dd30c6dfc621d920b4922f6e2113aa7640072f;hb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;hp=f8e202092e390bdc04f2a610806471fa0fd6b36d;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/FS/FS/UI/Web/small_custview.pm b/FS/FS/UI/Web/small_custview.pm index f8e202092..36dd30c6d 100644 --- a/FS/FS/UI/Web/small_custview.pm +++ b/FS/FS/UI/Web/small_custview.pm @@ -3,6 +3,7 @@ package FS::UI::Web::small_custview; use strict; use vars qw(@EXPORT_OK @ISA); use Exporter; +use HTML::Entities; use FS::Msgcat; use FS::Record qw(qsearchs); use FS::cust_main; @@ -35,7 +36,26 @@ sub small_custview { $html .= 'Customer #'. $cust_main->display_custnum. ''. ' - '. - ucfirst($cust_main->status). ''. + ucfirst($cust_main->status). ''; + + my @part_tag = $cust_main->part_tag; + if ( @part_tag ) { + $html .= ''; + foreach my $part_tag ( @part_tag ) { + $html .= ''; + } + $html .= '
'. + 'tagcolor) + ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"' + : '' + ). + '>'. + encode_entities($part_tag->tagname.': '. $part_tag->tagdesc). + ''. + '
'; + } + + $html .= ntable('#e8e8e8'). ''. ntable("#cccccc",2). 'Billing
Address'. $cust_main->getfield('last'). ', '. $cust_main->first. '
';