start adding package locations, RT#4499
[freeside.git] / httemplate / view / cust_main / packages / location.html
1 <TD CLASS="inv" BGCOLOR="<% $bgcolor %>">
2
3 % unless ( $cust_pkg->locationnum ) {
4   <I><FONT SIZE=-1>(default service address)</FONT><BR>
5 % }
6
7   <% $loc->address1 |h %><BR>
8
9 % if ( $loc->address2 !~ /^\s*$/ ) {
10     <% $loc->address2 |h %><BR>
11 % }
12
13   <% $loc->city |h %><% %>,
14   <% $loc->state |h %> &nbsp; <% $loc->zip |h %><BR>
15
16 % if ( $loc->country ne $countrydefault ) {
17   <% code2country( $loc->country ) %>
18 % }
19
20   </I>
21
22 </TD>
23 <%init>
24
25 my %opt = @_;
26
27 my $bgcolor        = $opt{'bgcolor'};
28 my $cust_pkg       = $opt{'cust_pkg'};
29 my $part_pkg       = $opt{'part_pkg'};
30 my $conf           = new FS::Conf;
31 my $countrydefault = $conf->config('countrydefault') || 'US';
32
33 my $loc = $cust_pkg->cust_location_or_main;
34
35 </%init>