X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fqual.cgi;h=56c2b61df1ca4be21d60138cb12095ac3443751e;hb=80879cb478cf28d90b3abb8a26bca29ad3a3f3b1;hp=45f3d2a625dbe68f622de8cf30e0fb6870247ef7;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git
diff --git a/httemplate/view/qual.cgi b/httemplate/view/qual.cgi
index 45f3d2a62..56c2b61df 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,58 @@
% 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;
-% if (%location && $location{'locationnum'}) {
-% $locationnum = $location{'locationnum'};
-% }
-