<TR>
<TD ALIGN="right"><% mt('Status') |h %></TD>
- <TD BGCOLOR="#ffffff"><FONT COLOR="#<% $cust_main->statuscolor %>"><B><% ucfirst($cust_main->status) %></B></FONT></TD>
+ <TD BGCOLOR="#ffffff"><FONT COLOR="#<% $cust_main->statuscolor %>"><B><% $status_label %></B></FONT></TD>
</TR>
% my @part_tag = $cust_main->part_tag;
<TD BGCOLOR="#ffffff"><% $dt ? $dt->strftime($date_format) : '' %></TD>
</TR>
-% }
-
-% 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'
+% );
<TR>
<TD ALIGN="right"><% mt('Spouse Date of Birth') |h %></TD>
<TD BGCOLOR="#ffffff"><% $dt ? $dt->strftime($date_format) : '' %></TD>
</TR>
-% }
+% }
+% } # enable_birthdate
% if ( $conf->exists('cust_main-enable_anniversary_date') ) {
% my $dt = $cust_main->anniversary_date ne ''
% }
-% if ( $conf->exists('cust_main-require_censustract') ) {
-
- <TR>
- <TD ALIGN="right">
- <% mt('Census tract ([_1])', $cust_main->ship_location->censusyear) |h %>
- </TD>
- <TD BGCOLOR="#ffffff"><% $cust_main->ship_location->censustract %></TD>
- </TR>
-
-% }
-
% if ( $cust_main->district ) {
<TR>
my @agentnums = $curuser->agentnums;
+my $status_label = ucfirst($cust_main->status);
+if ($cust_main->is_status_delay_cancel) {
+ $status_label .= ' (Cancelled)';
+}
+
</%init>