summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-cust_location.html
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-20 20:46:30 +0000
committerlevinse <levinse>2011-01-20 20:46:30 +0000
commit98779ec47370ad67c716154f67f6a726b83e09ed (patch)
tree808e131493ef786f9b63e13b1341167aaae72b3c /httemplate/elements/tr-select-cust_location.html
parent6f1653f32e2d7bef2b31832a0289482bc40613e5 (diff)
Ikano / svc_dsl / qualification improvements, RT7111
Diffstat (limited to 'httemplate/elements/tr-select-cust_location.html')
-rw-r--r--httemplate/elements/tr-select-cust_location.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html
index fa19405b2..5802f4ec2 100644
--- a/httemplate/elements/tr-select-cust_location.html
+++ b/httemplate/elements/tr-select-cust_location.html
@@ -154,11 +154,16 @@ Example:
<<%$th%> ALIGN="right"><% $opt{'label'} || 'Service&nbsp;location' %></<%$th%>>
<TD COLSPAN=7>
<SELECT NAME="locationnum" onChange="locationnum_changed(this);">
+% if ( !$prospect_main ) {
<OPTION VALUE=""><% $opt{'empty_label'} || '(default service address)' |h %>
+% }
% if ( $opt{'is_optional'} ) {
<OPTION VALUE="-2" <% $locationnum == -2 ? 'SELECTED' : ''%>><% $opt{'optional_label'} || '(not required)' |h %>
% }
% my @locations = $cust_main ? $cust_main->cust_location : ();
+% @locations = qsearch('cust_location',
+% { 'prospectnum' => $prospect_main->prospectnum } )
+% if $prospect_main;
% push @locations, $cust_location
% if !$cust_main && $cust_location && $cust_location->locationnum>0;
% foreach my $loc ( sort $location_sort @locations ) {