% next if $cust_main && $cust_main->ship_locationnum == $loc->locationnum;
<OPTION VALUE="<% $loc->locationnum %>"
<% $locationnum == $loc->locationnum ? 'SELECTED' : '' %>
- ><% $loc->line |h %>
+ ><% $loc->line( cust_main => $cust_main,
+ countrydefault => $countrydefault,
+ )
+ |h %>
% }
% if ( $addnew ) {
<OPTION VALUE="-1"
'enable_censustract' => 1,
)
%>
-<SCRIPT TYPE="text/javascript">
- locationnum_changed(document.getElementById('locationnum'));
-</SCRIPT>
+
+% unless ( $prospect_main ) {
+ <SCRIPT TYPE="text/javascript">
+ locationnum_changed(document.getElementById('locationnum'));
+ </SCRIPT>
+% }
+
<%init>
my $conf = new FS::Conf;