X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fchange_history_common.html;h=5fba23621d9eb1ad91249ba96e79ea44d3c919e0;hb=4b67c9f8cfc9f944b7758e7e69ac1f9f188ffa47;hp=d941427820b2fa595261f025f2a31bbe1b171ced;hpb=f34ac99a5e160d2eac4fb2cfecce820d1cf9b7ed;p=freeside.git
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index d94142782..5fba23621 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,14 +44,48 @@
% } 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 {
+% $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 }
+% $item->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