% unless ( $cust_pkg->locationnum ) { (default service address)
% } <% $loc->address1 |h %>
% if ( $loc->address2 !~ /^\s*$/ ) { <% $loc->address2 |h %>
% } <% $loc->city |h %><% %>, <% $loc->state |h %>   <% $loc->zip |h %>
% if ( $loc->country ne $countrydefault ) { <% code2country( $loc->country ) %> % }
<%init> my %opt = @_; my $bgcolor = $opt{'bgcolor'}; my $cust_pkg = $opt{'cust_pkg'}; my $part_pkg = $opt{'part_pkg'}; my $conf = new FS::Conf; my $countrydefault = $conf->config('countrydefault') || 'US'; my $loc = $cust_pkg->cust_location_or_main;