3 my $conf = new FS::Conf;
7 <%= ntable("#cccccc") %><TR><TD><%= ntable("#cccccc",2) %>
9 <TD ALIGN="right">Contact name</TD>
10 <TD COLSPAN=3 BGCOLOR="#ffffff">
11 <%= $cust_main->last. ', '. $cust_main->first %>
13 <% if ( $conf->exists('show_ss') ) { %>
14 <TD ALIGN="right">SS#</TD>
15 <TD BGCOLOR="#ffffff"><%= $cust_main->ss || ' ' %></TD>
19 <TD ALIGN="right">Company</TD>
20 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->company %></TD>
23 <TD ALIGN="right">Address</TD>
24 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->address1 %></TD>
26 <% if ( $cust_main->address2 ) { %>
28 <TD ALIGN="right"> </TD>
29 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->address2 %></TD>
33 <TD ALIGN="right">City</TD>
34 <TD BGCOLOR="#ffffff"><%= $cust_main->city %></TD>
35 <TD ALIGN="right">State</TD>
36 <TD BGCOLOR="#ffffff"><%= state_label($cust_main->state, $cust_main->country) %></TD>
37 <TD ALIGN="right">Zip</TD>
38 <TD BGCOLOR="#ffffff"><%= $cust_main->zip %></TD>
41 <TD ALIGN="right">Country</TD>
42 <TD BGCOLOR="#ffffff"><%= code2country($cust_main->country) %></TD>
45 my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
47 : FS::Msgcat::_gettext('daytime');
48 my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/
50 : FS::Msgcat::_gettext('night');
53 <TD ALIGN="right"><%= $daytime_label %></TD>
54 <TD COLSPAN=6 BGCOLOR="#ffffff">
55 <%= include('/elements/phonenumber.html',
63 <TD ALIGN="right"><%= $night_label %></TD>
64 <TD COLSPAN=6 BGCOLOR="#ffffff">
65 <%= include('/elements/phonenumber.html',
73 <TD ALIGN="right">Fax</TD>
74 <TD COLSPAN=5 BGCOLOR="#ffffff">
75 <%= $cust_main->fax || ' ' %>
78 </TABLE></TD></TR></TABLE>
80 <% if ( defined $cust_main->dbdef_table->column('ship_last') ) {
81 my $pre = $cust_main->ship_last ? 'ship_' : '';
86 <%= ntable("#cccccc") %><TR><TD><%= ntable("#cccccc",2) %>
88 <TD ALIGN="right">Contact name</TD>
89 <TD COLSPAN=5 BGCOLOR="#ffffff">
90 <%= $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
94 <TD ALIGN="right">Company</TD>
95 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}company") %></TD>
98 <TD ALIGN="right">Address</TD>
99 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}address1") %></TD>
101 <% if ( $cust_main->get("${pre}address2") ) { %>
103 <TD ALIGN="right"> </TD>
104 <TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}address2") %></TD>
108 <TD ALIGN="right">City</TD>
109 <TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}city") %></TD>
110 <TD ALIGN="right">State</TD>
111 <TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}state") %></TD>
112 <TD ALIGN="right">Zip</TD>
113 <TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}zip") %></TD>
116 <TD ALIGN="right">Country</TD>
117 <TD BGCOLOR="#ffffff"><%= code2country( $cust_main->get("${pre}country") ) %></TD>
120 <TD ALIGN="right"><%= $daytime_label %></TD>
121 <TD COLSPAN=5 BGCOLOR="#ffffff">
122 <%= include('/elements/phonenumber.html',
123 $cust_main->get("${pre}daytime"),
130 <TD ALIGN="right"><%= $night_label %></TD>
131 <TD COLSPAN=5 BGCOLOR="#ffffff">
132 <%= include('/elements/phonenumber.html',
133 $cust_main->get("${pre}night"),
140 <TD ALIGN="right">Fax</TD>
141 <TD COLSPAN=5 BGCOLOR="#ffffff">
142 <%= $cust_main->get("${pre}fax") || ' ' %>
145 </TABLE></TD></TR></TABLE>