X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fqual.cgi;h=5c15ec0c35f419d00cad17c387d345cfafac1e49;hb=822645aade15a4c4ac0558b116f7aacf9491002c;hp=ec3a7cf1d5415c7f117e77eef58e90e044c442bf;hpb=1888d732dcc9f50b7f88ebc684d1c05b534cbd92;p=freeside.git diff --git a/httemplate/view/qual.cgi b/httemplate/view/qual.cgi index ec3a7cf1d..5c15ec0c3 100644 --- a/httemplate/view/qual.cgi +++ b/httemplate/view/qual.cgi @@ -1,14 +1,17 @@ <% include("/elements/header.html","View Qualification") %> -% if ( $cust_or_prospect->get('custnum') ) { +% if ( $cust_or_prospect->custnum ) { - <% include( '/elements/small_custview.html', $cust_or_prospect->custnum, '', 1, - "${p}view/cust_main.cgi") %> + <% include( '/elements/small_custview.html', $cust_or_prospect, + '', #countrydefault override + 1, #no balance + "${p}view/cust_main.cgi"), #url + %> + +% } elsif ( $cust_or_prospect->prospectnum ) { + + <% include( '/elements/small_prospect_view.html', $cust_or_prospect) %> -% } elsif ( $cust_or_prospect->get('prospectnum') ) { -% my $prospectnum = $cust_or_prospect->get('prospectnum'); -% my $link = "${p}view/prospect_main.html?$prospectnum"; - Prospect #<%$prospectnum%> % }

@@ -16,7 +19,7 @@ Qualification #<% $qual->qualnum %> <% ntable("#cccccc", 2) %> <% include('elements/tr.html', label => 'Status', value => $qual->status_long ) %> -<% include('elements/tr.html', label => 'Service Telephone Number', value => $qual->phonenum ) %> +<% include('elements/tr.html', label => 'Service Telephone Number', value => $qual->phonenum || '(none - dry loop)' ) %> <% include('elements/tr.html', label => 'Address', value => $location_line ) %> % if ( $location_kind ) { <% include('elements/tr.html', label => 'Location Kind', value => $location_kind ) %> @@ -28,41 +31,56 @@

% if ( $export ) { -% my $qual_result = $export->qual_result($qual); -% if ($qual_result->{'header'}) { - <% $qual_result->{'header'} %> -% } -% if ($qual_result->{'pkglist'}) { # one of the possible formats -% my $svcpart = ''; -% my $pkglist = $qual_result->{'pkglist'}; -% my $cust_or_prospect = $qual->cust_or_prospect; -% my $locationnum = ''; -% my %location = $qual->location_hash; -% if (%location && $location{'locationnum'}) { -% $locationnum = $location{'locationnum'}; -% } - % } + +% my $not_avail = $qual_result->{'not_avail'}; +% if ( keys %$not_avail ) { +
+ Qualifying vendor packages (not yet configured in any package definition): + <% join(', ', map $not_avail->{$_}, keys %$not_avail ) |h %> +% } + % } <%init> @@ -93,7 +111,7 @@ my $location_kind; $location_kind = "Residential" if $cust_location->get('location_kind') eq 'R'; $location_kind = "Business" if $cust_location->get('location_kind') eq 'B'; -my $cust_or_prospect = $qual->cust_or_prospect; +my $cust_or_prospect = $qual->cust_or_prospect; #or die? qual without this? my $export = $qual->part_export;