2 % my( $cust_main ) = @_;
3 % my $conf = new FS::Conf;
8 <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
10 <TD ALIGN="right">Contact name</TD>
11 <TD COLSPAN=3 BGCOLOR="#ffffff">
12 <% $cust_main->last. ', '. $cust_main->first %>
14 % if ( $conf->exists('show_ss') ) {
16 <TD ALIGN="right">SS#</TD>
17 <TD BGCOLOR="#ffffff"><% $cust_main->ss || ' ' %></TD>
22 <TD ALIGN="right">Company</TD>
23 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->company %></TD>
26 <TD ALIGN="right">Address</TD>
27 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->address1 %></TD>
29 % if ( $cust_main->address2 ) {
32 <TD ALIGN="right"> </TD>
33 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->address2 %></TD>
38 <TD ALIGN="right">City</TD>
39 <TD BGCOLOR="#ffffff"><% $cust_main->city %></TD>
40 <TD ALIGN="right">State</TD>
41 <TD BGCOLOR="#ffffff"><% state_label($cust_main->state, $cust_main->country) %></TD>
42 <TD ALIGN="right">Zip</TD>
43 <TD BGCOLOR="#ffffff"><% $cust_main->zip %></TD>
46 <TD ALIGN="right">Country</TD>
47 <TD BGCOLOR="#ffffff"><% code2country($cust_main->country) %></TD>
50 % my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
52 % : FS::Msgcat::_gettext('daytime');
53 % my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/
54 % ? 'Night Phone'
55 % : FS::Msgcat::_gettext('night');
59 <TD ALIGN="right"><% $daytime_label %></TD>
60 <TD COLSPAN=6 BGCOLOR="#ffffff">
61 <% include('/elements/phonenumber.html',
69 <TD ALIGN="right"><% $night_label %></TD>
70 <TD COLSPAN=6 BGCOLOR="#ffffff">
71 <% include('/elements/phonenumber.html',
79 <TD ALIGN="right">Fax</TD>
80 <TD COLSPAN=5 BGCOLOR="#ffffff">
81 <% $cust_main->fax || ' ' %>
84 </TABLE></TD></TR></TABLE>
85 % if ( defined $cust_main->dbdef_table->column('ship_last') ) {
86 % my $pre = $cust_main->ship_last ? 'ship_' : '';
92 <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
94 <TD ALIGN="right">Contact name</TD>
95 <TD COLSPAN=5 BGCOLOR="#ffffff">
96 <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
100 <TD ALIGN="right">Company</TD>
101 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->get("${pre}company") %></TD>
104 <TD ALIGN="right">Address</TD>
105 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address1") %></TD>
107 % if ( $cust_main->get("${pre}address2") ) {
110 <TD ALIGN="right"> </TD>
111 <TD COLSPAN=5 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address2") %></TD>
116 <TD ALIGN="right">City</TD>
117 <TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}city") %></TD>
118 <TD ALIGN="right">State</TD>
119 <TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}state") %></TD>
120 <TD ALIGN="right">Zip</TD>
121 <TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}zip") %></TD>
124 <TD ALIGN="right">Country</TD>
125 <TD BGCOLOR="#ffffff"><% code2country( $cust_main->get("${pre}country") ) %></TD>
128 <TD ALIGN="right"><% $daytime_label %></TD>
129 <TD COLSPAN=5 BGCOLOR="#ffffff">
130 <% include('/elements/phonenumber.html',
131 $cust_main->get("${pre}daytime"),
138 <TD ALIGN="right"><% $night_label %></TD>
139 <TD COLSPAN=5 BGCOLOR="#ffffff">
140 <% include('/elements/phonenumber.html',
141 $cust_main->get("${pre}night"),
148 <TD ALIGN="right">Fax</TD>
149 <TD COLSPAN=5 BGCOLOR="#ffffff">
150 <% $cust_main->get("${pre}fax") || ' ' %>
153 </TABLE></TD></TR></TABLE>