X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fchange_history_common.html;h=7300707d1772783a9e6c19c94f1b7ba29f0dd269;hp=961176779b37f6e1513107e58ce56134daf7aa49;hb=2e24da864a3a71ec242f8feb2c13042a1d61faeb;hpb=5a50d03d042651bf98d983f1c06fe060d56c328c diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index 961176779..7300707d1 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -100,8 +100,13 @@ +% my $description = ''; % if ( $item->table eq 'legacy_cust_history' ) { <% $item->description |h %> +% } elsif ( $item->table eq 'h_cust_tag' ) { +% $description = &{ $h_table_descripsub{$item->table} }( $item, $tables{'cust_tag'} ) +% if $single_cust && $h_table_descripsub{$item->table}; + <% $description %> % } else { <% join(', ', map { my $value = ( $_ =~ /(^pay(info|cvv)|^ss|_password)$/ ) @@ -127,7 +132,7 @@ % if ( $single_cust && $h_table_descripsub{$item->table} ) { <% &{ $h_table_descripsub{$item->table} }( $item ) %> % } -% } +% } @@ -212,9 +217,15 @@ my %h_table_labelsub = ( 'h_svc_external' => $svc_labelsub, 'h_svc_phone' => $svc_labelsub, #'h_phone_device' - 'h_cust_tag' => $tag_labelsub, + #'h_cust_tag' => $tag_labelsub, ); +my $tag_descripsub = sub { + my($item, $label) = @_; + my $part_tag = qsearchs('part_tag',{ tagnum => $item->tagnum }); + ''. encode_entities($part_tag->tagname). ''; +}; + my $discounts = {}; my $discount_descripsub = sub { my($item) = @_; @@ -234,6 +245,7 @@ my $discount_descripsub = sub { my %h_table_descripsub = ( 'h_cust_pkg_discount' => $discount_descripsub, + 'h_cust_tag' => $tag_descripsub, ); my $cust_pkg_date_format = '%b %o, %Y';