X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fchange_history.html;h=8fc90f6b843ba4f6b53ab4f4ed7467873bfb857c;hb=dbe1f22d63052dbbfe8b3cb578a0d831213ebb75;hp=53a79f47f46b887e46bacd7a51ee487429569aa0;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git
diff --git a/httemplate/view/cust_main/change_history.html b/httemplate/view/cust_main/change_history.html
index 53a79f47f..8fc90f6b8 100644
--- a/httemplate/view/cust_main/change_history.html
+++ b/httemplate/view/cust_main/change_history.html
@@ -94,6 +94,11 @@
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";
@@ -231,7 +236,7 @@ my %h_table_labelsub = (
#svc_*
# svc_acct
# radius_usergroup
-# acct_snarf? is this even used?
+# acct_snarf? is this even used? it is now, for communigate RPOP
# svc_domain
# domain_record
# registrar
@@ -266,6 +271,16 @@ my $curuser = $FS::CurrentUser::CurrentUser;
die "access deined"
unless $curuser->access_right('View customer history');
+my $cust_pkg_date_format = '%b %o, %Y';
+$cust_pkg_date_format .= ' %l:%M:%S%P'
+ if $conf->exists('cust_pkg-display_times')
+ || $curuser->option('cust_pkg-display_times');
+
+my %cust_pkg_date_fields = map { $_=>1 } qw(
+ start_date setup bill last_bill susp adjourn cancel expire contract_end
+ change_date
+);
+
# find out the beginning of this customer history, if possible
my $h_insert = qsearchs({
'table' => 'h_cust_main',