X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=053f0396c1ff7b0584ea3e0045f16d073c373cc9;hb=d72d57ec3b5c9f8d0115f84c02943994d93436ca;hp=d65af669a1a35b94d344bfea653aed820cc9dd22;hpb=56e92333570e8b1bb6afb7374e9624b76946c749;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index d65af669a..053f0396c 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -13,6 +13,13 @@ (<% mt('same as billing') %>) % } +% if ( +% ($this eq 'ship') +% && $cust_main->invoice_ship_address +% && !$conf->exists('invoice-ship_address') #it's always on, so hide per-cust config +% ) { +(<% emt('included on invoices') %>) +% } % if ( $this eq 'bill' ) { @@ -27,6 +34,16 @@ : $cust_main->masked('ss') || ' ' %> % } +% if ( $conf->exists('cust_main-enable_spouse') and +% ($cust_main->spouse_last or $cust_main->spouse_first) ) { + + + + +% } % if ( $conf->exists('cust-email-high-visibility') ) { @@ -41,8 +58,23 @@ % } -% } # if $this eq 'bill' +% } elsif ( $this eq 'ship' ) { +% if ( $cust_main->ship_company ) { # mostly obsolete these days... + + + + +% } +% } % # now the actual address + +% if ( $location->locationname ) { + + + + +% } + @@ -61,8 +93,12 @@ % } +% if ( $location->city ) { +% } else { + +% } % if ( $location->county ) { @@ -70,11 +106,11 @@ - + - + % if ( $location->latitude && $location->longitude ) { @@ -84,6 +120,7 @@ $cust_main->agentnum, &> % } +<& /elements/tr-censustract.html, $location &> % if ( $this eq 'bill' ) { % # billing contact phone numbers
<% mt('Spouse') |h %> + <% join(', ', grep $_, + $cust_main->spouse_last, $cust_main->spouse_first) %> +
<% mt('Email address(es)') |h %><% $cust_main->company |h %>
<% mt('Company') |h %><% $cust_main->ship_company |h %>
<% mt('Location ID') |h %><% $location->locationname |h %>
<% mt('Address') |h %> <% $location->address1 |h %>
<% mt('City') |h %> <% $location->city |h %><% mt('County') |h %> <% $location->county |h %><% mt('State') |h %> <% state_label( $location->state, $location->country ) |h %> <% mt('Zip') |h %><% $location->zip %><% $location->zip |h %>
<% mt('Country') |h %><% code2country( $location->country ) %><% $location->country_full |h %>