X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=b085b550a832af6f565d4ee493e68cf6ac6f8757;hb=cbded596b87f700c427f7be3e746a90c561456c4;hp=7915195b4e656a46becb1eaf1b471af236211f91;hpb=c6af9fc65bb5e974453a355a62506b54b2abcdca;p=freeside.git diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 7915195b4..b085b550a 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -7,7 +7,7 @@ <% mt('Status') |h %> - <% ucfirst($cust_main->status) %> + <% $status_label %> % my @part_tag = $cust_main->part_tag; @@ -141,21 +141,20 @@ <% $dt ? $dt->strftime($date_format) : '' %> -% } - -% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { -% my $dt = $cust_main->spouse_birthdate ne '' -% ? DateTime->from_epoch( 'epoch' => $cust_main->spouse_birthdate, -% 'time_zone' =>'floating', -% ) -% : ''; +% if ( $conf->exists('cust_main-enable_spouse') +% and $cust_main->spouse_birthdate ) { +% my $dt = DateTime->from_epoch( +% 'epoch' => $cust_main->spouse_birthdate, +% 'time_zone' =>'floating' +% ); <% mt('Spouse Date of Birth') |h %> <% $dt ? $dt->strftime($date_format) : '' %> -% } +% } +% } # enable_birthdate % if ( $conf->exists('cust_main-enable_anniversary_date') ) { % my $dt = $cust_main->anniversary_date ne '' @@ -205,4 +204,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; my @agentnums = $curuser->agentnums; +my $status_label = ucfirst($cust_main->status); +if ($cust_main->is_status_delay_cancel) { + $status_label .= ' (Cancelled)'; +} +