apply discount to setup fees, part 1 of 2, RT11512
[freeside.git] / httemplate / elements / tr-select-cust_location.html
index a9c9382..8b1895f 100644 (file)
@@ -199,7 +199,10 @@ Example:
 <TR>
   <<%$th%> ALIGN="right"><% $opt{'label'} || 'Service&nbsp;location' %></<%$th%>>
   <TD COLSPAN=7>
-    <SELECT NAME="locationnum" onChange="locationnum_changed(this);">
+    <SELECT NAME     = "locationnum"
+            ID       = "locationnum"
+            onChange = "locationnum_changed(this);"
+    >
 % if ( !$prospect_main && !$opt{'disable_empty'} ) {
       <OPTION VALUE=""><% $opt{'empty_label'} || '(default service address)' |h %>
 % }
@@ -305,7 +308,7 @@ push @cust_location, $cust_location
 
 @cust_location = sort $location_sort grep !$_->disabled, @cust_location;
 
-$cust_location = $cust_location[0];
+$cust_location = $cust_location[0]
   if ( $prospect_main || $opt{'disable_empty'} )
   && !$opt{'is_optional'}
   && @cust_location;