X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fqual.cgi;h=45f3d2a625dbe68f622de8cf30e0fb6870247ef7;hb=5c0d47bfe554a35c8906d97b9fabd9999be4f67e;hp=f96726995dd7f61b5a1eb273181271ad1f20747a;hpb=663b89d06a2c97fb0e7915ba409310fbefefea98;p=freeside.git diff --git a/httemplate/view/qual.cgi b/httemplate/view/qual.cgi index f96726995..45f3d2a62 100644 --- a/httemplate/view/qual.cgi +++ b/httemplate/view/qual.cgi @@ -1,13 +1,18 @@ <% include("/elements/header.html","View Qualification") %> -% if ( $cust_or_prospect->custnum ) { +% if ( $cust_or_prospect->get('custnum') ) { <% include( '/elements/small_custview.html', $cust_or_prospect->custnum, '', 1, "${p}view/cust_main.cgi") %> -
+% } elsif ( $cust_or_prospect->get('prospectnum') ) { +% my $prospectnum = $cust_or_prospect->get('prospectnum'); +% my $link = "${p}view/prospect_main.html?$prospectnum"; + Prospect #<%$prospectnum%> % } +

+ Qualification #<% $qual->qualnum %> <% ntable("#cccccc", 2) %> <% include('elements/tr.html', label => 'Status', value => $qual->status_long ) %> @@ -23,12 +28,47 @@

% if ( $export ) { -<% $export->qual_html($qual) %> +% 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; +% if (%location && $location{'locationnum'}) { +% $locationnum = $location{'locationnum'}; +% } + +% } % } <%init> -# XXX: add access right for quals? +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Qualify service'); my $qualnum; if ( $cgi->param('qualnum') ) { @@ -48,18 +88,12 @@ if ( %location_hash ) { $cust_location = new FS::cust_location(\%location_hash); $location_line = $cust_location->location_label; } -# XXX: geocode_Mixin location_label doesn't currently have the new cust_location fields - add them my $location_kind; -$location_kind = "Residential" if $cust_location->location_kind eq 'R'; -$location_kind = "Business" if $cust_location->location_kind eq 'B'; +$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 $export; -if ( $qual->exportnum ) { - $export = qsearchs('part_export', { exportnum => $qual->exportnum } ) - or die 'invalid exportnum'; -} +my $export = $qual->part_export;