X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_Common.html;h=d735195fe103037a808ca6bb49dc72585f76869c;hb=c2e126583354b58ef54ffa7f580b115b8eed1dd3;hp=a7f8f6df41bf6a89addbaf6c3ec39df3b935fbd9;hpb=04f99991071acf5c390ea4d52db37798543ff9d8;p=freeside.git diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index a7f8f6df4..d735195fe 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -57,6 +57,7 @@ function areyousure(href) { <% ntable("#cccccc") %><% ntable("#cccccc",2) %> +% my @inventory_items = $svc_x->inventory_item; % foreach my $f ( @$fields ) { % % my($field, $type, $value); @@ -76,6 +77,14 @@ function areyousure(href) { % } % % my $columndef = $part_svc->part_svc_column($field); +% if ( $columndef->columnflag =~ /^[MA]$/ && $columndef->columnvalue =~ /,/ ) +% { +% # inventory-select field with multiple classes +% # show the class name to disambiguate +% my ($item) = grep { $_->svc_field eq $field } @inventory_items; +% my $class = qsearchs('inventory_class', { classnum => $item->classnum }); +% $value .= ' ('. $class->classname . ')' if $class; +% } % unless ($columndef->columnflag eq 'F' && !length($columndef->columnvalue)) {