diff options
author | levinse <levinse> | 2011-01-20 20:46:30 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-20 20:46:30 +0000 |
commit | 98779ec47370ad67c716154f67f6a726b83e09ed (patch) | |
tree | 808e131493ef786f9b63e13b1341167aaae72b3c /httemplate/elements | |
parent | 6f1653f32e2d7bef2b31832a0289482bc40613e5 (diff) |
Ikano / svc_dsl / qualification improvements, RT7111
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/popup_link-cust_main.html | 4 | ||||
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/elements/popup_link-cust_main.html b/httemplate/elements/popup_link-cust_main.html index 454fcc4c8..78e50e782 100644 --- a/httemplate/elements/popup_link-cust_main.html +++ b/httemplate/elements/popup_link-cust_main.html @@ -39,4 +39,8 @@ $params->{'action'} .= ( $params->{'action'} =~ /\?/ ? ';' : '?' ). 'custnum='. $params->{'cust_main'}->custnum; +$params->{'action'} .= ';pkgpart='.$params->{'pkgpart'} if $params->{'pkgpart'}; +$params->{'action'} .= ';locationnum='.$params->{'locationnum'} if $params->{'locationnum'}; +$params->{'action'} .= ';svcpart='.$params->{'svcpart'} if $params->{'svcpart'}; + </%init> 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 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 ) { |