-Billing address
-<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
-<TR>
- <TD ALIGN="right">Contact name</TD>
- <TD COLSPAN=3 BGCOLOR="#ffffff">
- <% $cust_main->last. ', '. $cust_main->first %>
- </TD>
-% if ( $conf->exists('show_ss') ) {
+% if ( $this eq 'bill' ) {
+% #billing contact fields
+ <TR>
+ <TH ALIGN="right"><% mt('Contact name') |h %></TH>
+ <TD COLSPAN=5><% $cust_main->contact |h %></TD>
+% if ( $conf->exists('show_ss') ) {
+ <TH ALIGN="right"><% mt('SS#') |h %></TH>
+ <TD><% $conf->exists('unmask_ss')
+ ? $cust_main->ss
+ : $cust_main->masked('ss') || ' ' %></TD>
+% }
+ </TR>
+% if ( $conf->exists('cust_main-enable_spouse') and
+% ($cust_main->spouse_last or $cust_main->spouse_first) ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Spouse') |h %></TH>
+ <TD COLSPAN=5>
+ <% join(', ', grep $_,
+ $cust_main->spouse_last, $cust_main->spouse_first) %>
+ </TD>
+ </TR>
+% }
+% if ( $conf->exists('cust-email-high-visibility') ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Email address(es)') |h %></TH>
+ <TD BGCOLOR="#ffff00">
+ <% $cust_main->invoicing_list_emailonly_scalar || $no %>
+ </TD>
+ </TR>
+% }
+% if ( $cust_main->company ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Company') |h %></TH>
+ <TD COLSPAN=7><% $cust_main->company |h %></TD>
+ </TR>
+% }
+% } elsif ( $this eq 'ship' ) {
+% if ( $cust_main->ship_company ) { # mostly obsolete these days...
+ <TR>
+ <TD ALIGN="right"><% mt('Company') |h %></TD>
+ <TD COLSPAN=7><% $cust_main->ship_company |h %></TD>
+ </TR>
+% }
+% }