1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
<%
my( $cust_main ) = @_;
my $conf = new FS::Conf;
%>
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') ) { %>
<TD ALIGN="right">SS#</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->ss || ' ' %></TD>
<% } %>
</TR>
<TR>
<TD ALIGN="right">Company</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->company %></TD>
</TR>
<TR>
<TD ALIGN="right">Address</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->address1 %></TD>
</TR>
<% if ( $cust_main->address2 ) { %>
<TR>
<TD ALIGN="right"> </TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->address2 %></TD>
</TR>
<% } %>
<TR>
<TD ALIGN="right">City</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->city %></TD>
<TD ALIGN="right">State</TD>
<TD BGCOLOR="#ffffff"><%= state_label($cust_main->state, $cust_main->country) %></TD>
<TD ALIGN="right">Zip</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->zip %></TD>
</TR>
<TR>
<TD ALIGN="right">Country</TD>
<TD BGCOLOR="#ffffff"><%= code2country($cust_main->country) %></TD>
</TR>
<%
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');
%>
<TR>
<TD ALIGN="right"><%= $daytime_label %></TD>
<TD COLSPAN=6 BGCOLOR="#ffffff">
<%= include('/elements/phonenumber.html',
$cust_main->daytime,
'callable'=>1
)
%>
</TD>
</TR>
<TR>
<TD ALIGN="right"><%= $night_label %></TD>
<TD COLSPAN=6 BGCOLOR="#ffffff">
<%= include('/elements/phonenumber.html',
$cust_main->night,
'callable'=>1
)
%>
</TD>
</TR>
<TR>
<TD ALIGN="right">Fax</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<%= $cust_main->fax || ' ' %>
</TD>
</TR>
</TABLE></TD></TR></TABLE>
<% if ( defined $cust_main->dbdef_table->column('ship_last') ) {
my $pre = $cust_main->ship_last ? 'ship_' : '';
%>
<BR>
Service address
<%= ntable("#cccccc") %><TR><TD><%= ntable("#cccccc",2) %>
<TR>
<TD ALIGN="right">Contact name</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<%= $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
</TD>
</TR>
<TR>
<TD ALIGN="right">Company</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}company") %></TD>
</TR>
<TR>
<TD ALIGN="right">Address</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}address1") %></TD>
</TR>
<% if ( $cust_main->get("${pre}address2") ) { %>
<TR>
<TD ALIGN="right"> </TD>
<TD COLSPAN=5 BGCOLOR="#ffffff"><%= $cust_main->get("${pre}address2") %></TD>
</TR>
<% } %>
<TR>
<TD ALIGN="right">City</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}city") %></TD>
<TD ALIGN="right">State</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}state") %></TD>
<TD ALIGN="right">Zip</TD>
<TD BGCOLOR="#ffffff"><%= $cust_main->get("${pre}zip") %></TD>
</TR>
<TR>
<TD ALIGN="right">Country</TD>
<TD BGCOLOR="#ffffff"><%= code2country( $cust_main->get("${pre}country") ) %></TD>
</TR>
<TR>
<TD ALIGN="right"><%= $daytime_label %></TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<%= include('/elements/phonenumber.html',
$cust_main->get("${pre}daytime"),
'callable'=>1
)
%>
</TD>
</TR>
<TR>
<TD ALIGN="right"><%= $night_label %></TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<%= include('/elements/phonenumber.html',
$cust_main->get("${pre}night"),
'callable'=>1
)
%>
</TD>
</TR>
<TR>
<TD ALIGN="right">Fax</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<%= $cust_main->get("${pre}fax") || ' ' %>
</TD>
</TR>
</TABLE></TD></TR></TABLE>
<% } %>
|