X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=efcf48eccad2abcb34d8052eb213b61d1f41e2fb;hb=HEAD;hp=22594c5e271ba217f2d86181eb12faf179ceba22;hpb=51bf0e9b404cd6e4ae84435230447619269f77c0;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 22594c5e2..efcf48ecc 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -1,102 +1,235 @@ -% my %which = ( -% '' => 'Billing', -% 'ship_' => 'Service', -% ); -% foreach my $which ( '', 'ship_' ) { -% my $pre = $cust_main->get("${which}last") ? $which : ''; - -<% $which{$which} %> address -<% ntable("#cccccc") %>
<% mt('Contact name') |h %> | +<% $cust_main->contact |h %> | +% if ( $conf->exists('show_ss') ) { +<% mt('SS#') |h %> | ++ + <% $cust_main->masked('ss') || ' ' %> +% if ( +% $cust_main->ss +% && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN') +% ) { + <& /elements/link-replace_element_text.html, { + target_id => 'ss_span', + replace_text => $cust_main->ss, + element_type => 'span' + } &> +% } + + | +% } +||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<% mt('Spouse') |h %> | ++ <% join(', ', grep $_, + $cust_main->spouse_last, $cust_main->spouse_first) %> + | +||||||||||||||
<% mt('Email address') |h %> | ++ <% $invoicing_list[0] %> + | +||||||||||||||
<% mt('Email address') |h %> | +% if ( !$cust_main->postal_invoice or +% $conf->exists('cust_main-require_invoicing_list_email', +% $cust_main->agentnum) +% ) { +% # we need a contact email for this customer (either because that's +% # policy, or because otherwise they won't receive invoices) but we +% # don't have one. +<% emt('none') %> | +% } else { +<% emt('no') %> | +% } +% } # end of invoicing email + +% if ( $cust_main->company ) { +|||||||||||||
<% mt('Company') |h %> | +<% $cust_main->company |h %> | +||||||||||||||
<% mt('Company') |h %> | +<% $cust_main->ship_company |h %> | +||||||||||||||
<% mt('Location ID') |h %> | +<% $location->locationname |h %> | +||||||||||||||
Address | -<% $cust_main->get("${pre}address1") %> | +<% mt('Address') |h %> | +<% $location->address1 |h %> | ||||||||||||
- | <% $cust_main->get("${pre}address2") %> | +<% $address2_label %> | +<% $location->address2 |h %> | ||||||||||||
City | -<% $cust_main->get("${pre}city") %> | -% if ( $cust_main->get("${pre}county") ) { -County | -<% $cust_main->get("${pre}county") %> | ++ | <% $location->city |h %>\ +% if ( $location->county ) { + (<% $location->county |h %> county)\ % } - | State | -<% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) %> | -Zip | -<% $cust_main->get("${pre}zip") %> | +<% ($location->city || $location->county) ? ', ' : ''%><% state_label( $location->state, $location->country ) |h %> + <% $location->zip |h %> +||||||
Country | -<% code2country( $cust_main->get("${pre}country") ) %> | -||||||||||||||
<% $daytime_label %> | -- <% include('/elements/phonenumber.html', - $cust_main->get("${pre}daytime"), - 'callable'=>1 - ) - %> - | -||||||||||||||
<% $night_label %> | -- <% include('/elements/phonenumber.html', - $cust_main->get("${pre}night"), - 'callable'=>1 - ) - %> - | ++ | <% $location->country_full |h %> | ||||||||||||
Fax | -- <% $cust_main->get("${pre}fax") || ' ' %> + | <% $phone_label{$phone} %> + | + <& /elements/phonenumber.html, + $cust_main->get($phone), + callable => 1, + calling_list_exempt => $cust_main->calling_list_exempt, + &> | ||||||||||||
<% $stateid_label %> | -<% $cust_main->masked('stateid') || ' ' %> | -<% $stateid_state_label %> | -<% $cust_main->stateid_state || ' ' %> | +<% mt('Fax') |h %> | ++ <% $cust_main->get('fax') || ' ' %> + |