From 7bfd0175b05d52b648e283fca4343aef79e851d7 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 14 Mar 2014 16:59:38 -0700 Subject: add spouse name to customer records, #24919 --- httemplate/view/cust_main/contacts.html | 10 ++++++++++ httemplate/view/cust_main/misc.html | 17 ++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 44445356c..739cd588b 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -27,6 +27,16 @@ : $cust_main->masked('ss') || ' ' %> % } +% if ( $conf->exists('cust_main-enable_spouse') and +% ($cust_main->spouse_last or $cust_main->spouse_first) ) { + + <% mt('Spouse') |h %> + + <% join(', ', grep $_, + $cust_main->spouse_last, $cust_main->spouse_first) %> + + +% } % if ( $conf->exists('cust-email-high-visibility') ) { <% mt('Email address(es)') |h %> 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 @@ <% $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 '' -- cgit v1.2.1