X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fchange_history_common.html;h=d734053431f280f44c5781993f6cf8c69500f9fc;hb=5d36f5f81d84e116caae80667e37750e6798e2b1;hp=e56bd1d75c8fb504998e7bf2881dcf4f192e9ca4;hpb=cd2cf35ac3da7de5ad8b6055b345ace3a770d647;p=freeside.git
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index e56bd1d75..d73405343 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -3,6 +3,7 @@
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
+
+
% foreach my $item ( @history ) {
% my $history_other = '';
@@ -42,6 +44,42 @@
% } else {
% $bgcolor = $bgcolor1;
% }
+%
+% ## Create Description and check to see it is not empty, no need to display a record with no description, so skip it.
+% my $description = '';
+% if ( $item->table eq 'legacy_cust_history' ) {
+% $description = $item->description;
+% } 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};
+% } else {
+% my @fields = $item->fields;
+% push @fields, 'message_dest' if $item->table eq 'h_contact';
+% $description = join(', ',
+% map { my $value = ( $_ =~ /(^pay(info|cvv)|^ss|_password)$/ )
+% ? 'N/A'
+% : $item->get($_);
+% $value = time2str($cust_pkg_date_format, $value)
+% if $item->table eq 'h_cust_pkg'
+% && $cust_pkg_date_fields{$_}
+% && $value;
+%
+% $value = substr($value, 0, 77).'...' if length($value) > 80;
+% $value = encode_entities($value);
+% "$_:$value";
+% }
+% grep { $history_other
+% ? ( $item->get($_) ne $history_other->get($_) )
+% : ( $item->get($_) =~ /\S/ )
+% }
+% grep { ! /^(history|custnum$)/i }
+% @fields
+% );
+% if ( $single_cust && $h_table_descripsub{$item->table} ) {
+% $description = &{ $h_table_descripsub{$item->table} }( $item );
+% }
+% } #else
+% if (!$description) { next; }
User
Date
@@ -14,6 +15,7 @@
Action
Description