X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fprospect_main.html;h=a1f14a3745542353ff83d10386c366fa1b1ebf2a;hb=167dbdad01e2c1b62fd9be43cc05212e8c874a02;hp=de446a9fbdb9b7e43a693d59ea24deec2ee7cb32;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index de446a9fb..a1f14a374 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,25 +8,41 @@ Prospect # - <% $prospectnum %> + <% $prospectnum %> +% if ( $prospect_main->disabled ) { + (DISABLED) +% } + -%unless ( scalar(@agentnums) == 1 ) { +%unless ( scalar(@agentnums) == 1 +% && !$curuser->access_right('View customers of all agents') ) { % my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } ); Agent - <% $agent->agentnum %>: <% $agent->agent %> + <% $agent->agentnum %>: <% $agent->agent |h %> %} - - Company - <% $prospect_main->company |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 %> + +%} + +% if ( $prospect_main->company ) { + + Company + <% $prospect_main->company |h %> + +% } -% foreach my $contact ( $prospect_main->contact ) { +% foreach my $prospect_contact ( $prospect_main->prospect_contact ) { +% my $contact = $prospect_contact->contact; - Contact + <% $prospect_contact->contact_classname %> Contact <% $contact->line %> %} @@ -48,20 +61,46 @@ ) %> - + +% 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', + 'label' => 'New Qualification', + 'actionlabel' => 'New Qualification', + 'color' => '#333399', + 'prospect_main' => $prospect_main, + 'closetext' => 'Close', + 'width' => 763, + 'height' => 436, + ) +%> + | View Qualifications +

+% } + + <%init>