1 <TD CLASS="inv" BGCOLOR="<% $bgcolor %>">
3 % unless ( $cust_pkg->locationnum ) {
4 <I><FONT SIZE=-1>(default service address)</FONT><BR>
7 <% $loc->location_label( 'join_string' => '<BR>',
8 'double_space' => ' ',
9 'escape_function' => \&encode_entities,
10 'countrydefault' => $countrydefault,
14 % unless ( $cust_pkg->locationnum ) {
18 % if ( ! $cust_pkg->get('cancel')
19 % && $FS::CurrentUser::CurrentUser->access_right('Change customer package')
23 ( <%pkg_change_location_link($cust_pkg)%> )
32 my $bgcolor = $opt{'bgcolor'};
33 my $cust_pkg = $opt{'cust_pkg'};
34 my $countrydefault = $opt{'countrydefault'} || 'US';
35 my $statedefault = $opt{'statedefault'}
36 || ($countrydefault eq 'US' ? 'CA' : '');
38 my $loc = $cust_pkg->cust_location_or_main;
40 sub pkg_change_location_link {
42 my $pkgpart = $cust_pkg->pkgpart;
43 include( '/elements/popup_link-cust_pkg.html',
44 'action' => $p. "misc/change_pkg.cgi?locationnum=-1;pkgpart=$pkgpart;".
45 "address1=;address2=;city=;county=;state=$statedefault;".
46 "zip=;country=$countrydefault",
47 'label' => 'Change location',
48 'actionlabel' => 'Change',
49 'cust_pkg' => $cust_pkg,