% my %which = ( % '' => emt('Billing'), % 'ship_' => emt('Service'), % ); % foreach my $which ( '', 'ship_' ) { % my $pre = $cust_main->get("${which}last") ? $which : ''; <% $which{$which} %> <% mt('address') |h %>
<% mt('Contact name') |h %> | <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %> | % if ( $which eq '' && $conf->exists('show_ss') ) {<% mt('SS#') |h %> | <% $cust_main->masked('ss') || ' ' %> | % }||||
<% mt('Email invoices') |h %> | <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %> | ||||||
<% mt('Company') |h %> | <% $cust_main->get("${pre}company") |h %> | ||||||
<% mt('Address') |h %> | <% $cust_main->get("${pre}address1") |h %> | ||||||
<% $address2_label %> | <% $cust_main->get("${pre}address2") |h %> | ||||||
<% mt('City') |h %> | <% $cust_main->get("${pre}city") |h %> | % if ( $cust_main->get("${pre}county") ) {<% mt('County') |h %> | <% $cust_main->get("${pre}county") |h %> | % }<% mt('State') |h %> | <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %> | <% mt('Zip') |h %> | <% $cust_main->get("${pre}zip") %> |
<% mt('Country') |h %> | <% code2country( $cust_main->get("${pre}country") ) %> | ||||||
<% $phone_label{$phone} %> | <& /elements/phonenumber.html, $cust_main->get($pre.$phone), 'callable'=>1, 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> | ||||||
<% mt('Fax') |h %> | <% $cust_main->get("${pre}fax") || ' ' %> | ||||||
<% $stateid_label %> | <% $cust_main->masked('stateid') || ' ' %> | <% $stateid_state_label %> | <% $cust_main->stateid_state || ' ' %> |