X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=66abffcdd0293301a0ee56d195fb3e6e2f01a7c7;hb=b7cf1606a66cca95e3540f803ffa66d223f23a40;hp=d92d270977d15dd6c4969b3fed746aae5c68abc0;hpb=8d534e61d74e561a15f0863a835cda4af639a9ea;p=freeside.git
diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html
index d92d27097..66abffcdd 100644
--- a/httemplate/view/prospect_main.html
+++ b/httemplate/view/prospect_main.html
@@ -1,7 +1,4 @@
-<% include('/elements/header.html',
- 'Prospect View: '. $prospect_main->company
- )
-%>
+<& /elements/header.html, 'Prospect View: '. $prospect_main->company &>
% if ( $curuser->access_right('Edit prospect') ) {
Edit this prospect
@@ -11,7 +8,11 @@
Prospect # |
- <% $prospectnum %> |
+ <% $prospectnum %>
+% if ( $prospect_main->disabled ) {
+ (DISABLED)
+% }
+ |
%unless ( scalar(@agentnums) == 1
@@ -19,7 +20,15 @@
% my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } );
Agent |
- <% $agent->agentnum %>: <% $agent->agent %> |
+ <% $agent->agentnum %>: <% $agent->agent |h %> |
+
+%}
+
+%unless ( ! $prospect_main->refnum ) { # || scalar(@part_referral) == 1 ) {
+% my $part_referral = qsearchs('part_referral',{ 'refnum' => $prospect_main->refnum } );
+
+ Advertising source |
+ <% $part_referral->referral |h %> |
%}
@@ -32,7 +41,7 @@
% foreach my $contact ( $prospect_main->contact ) {
- Contact |
+ <% $contact->contact_classname %> Contact |
<% $contact->line %> |
%}
@@ -51,13 +60,21 @@
)
%>
-
+
+% if ( $cust_location->latitude && $cust_location->longitude ) {
+ <& /elements/tr-coords.html, $cust_location->latitude,
+ $cust_location->longitude,
+ $prospect_main->name,
+ &>
+% }
% }
+<& /elements/quotations.html, prospect_main=>$prospect_main &>
+
% if ( $curuser->access_right('Qualify service') ) {
<% include( '/elements/popup_link-prospect_main.html',
'action' => $p. 'misc/qual.html',
@@ -74,6 +91,7 @@
% }
+
<%init>