summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/misc.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-03-14 16:59:18 -0700
committerMark Wells <mark@freeside.biz>2014-03-14 16:59:18 -0700
commitcdc349ac42247cd97cd475918b75a8e8e71ec0c2 (patch)
treee8a3efeb88081c80661a6865f23ebd272fba5509 /httemplate/view/cust_main/misc.html
parentb2f85194e8e090dd6fb05acbe4575dd9440be134 (diff)
add spouse name to customer records, #24919
Diffstat (limited to 'httemplate/view/cust_main/misc.html')
-rw-r--r--httemplate/view/cust_main/misc.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index 7915195b4..0d011f6eb 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -141,21 +141,20 @@
<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 ''