%
my( $cust_main ) = @_;
my $conf = new FS::Conf;
%>
Billing address
<%= ntable("#cccccc") %>
<%= ntable("#cccccc",2) %>
|
Contact name |
<%= $cust_main->last. ', '. $cust_main->first %>
|
<% if ( $conf->exists('show_ss') ) { %>
SS# |
<%= $cust_main->ss || ' ' %> |
<% } %>
Company |
<%= $cust_main->company %> |
Address |
<%= $cust_main->address1 %> |
<% if ( $cust_main->address2 ) { %>
|
<%= $cust_main->address2 %> |
<% } %>
City |
<%= $cust_main->city %> |
State |
<%= $cust_main->state %> |
Zip |
<%= $cust_main->zip %> |
Country |
<%= $cust_main->country %> |
<%
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
? 'Day Phone'
: FS::Msgcat::_gettext('daytime');
my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/
? 'Night Phone'
: FS::Msgcat::_gettext('night');
%>
<%= $daytime_label %> |
<%= $cust_main->daytime || ' ' %>
|
<%= $night_label %> |
<%= $cust_main->night || ' ' %>
|
Fax |
<%= $cust_main->fax || ' ' %>
|
<% if ( defined $cust_main->dbdef_table->column('ship_last') ) {
my $pre = $cust_main->ship_last ? 'ship_' : '';
%>
Service address
<%= ntable("#cccccc") %><%= ntable("#cccccc",2) %>
|
Contact name |
<%= $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
|
Company |
<%= $cust_main->get("${pre}company") %> |
Address |
<%= $cust_main->get("${pre}address1") %> |
<% if ( $cust_main->get("${pre}address2") ) { %>
|
<%= $cust_main->get("${pre}address2") %> |
<% } %>
City |
<%= $cust_main->get("${pre}city") %> |
State |
<%= $cust_main->get("${pre}state") %> |
Zip |
<%= $cust_main->get("${pre}zip") %> |
Country |
<%= $cust_main->get("${pre}country") %> |
<%= $daytime_label %> |
<%= $cust_main->get("${pre}daytime") || ' ' %>
|
<%= $night_label %> |
<%= $cust_main->get("${pre}night") || ' ' %>
|
Fax |
<%= $cust_main->get("${pre}fax") || ' ' %>
|
<% } %>