X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=2fde797c6e914d9d1822e32e964ba34b71ce9ddd;hp=9e85348aff5b9cef1779c9696c69814dff3b6968;hb=877a4eb85cb847bd314d6a9192fedb1dc35c5d02;hpb=ed4369640adc2e7c468ca384010729e8ec1f9074 diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 9e85348af..2fde797c6 100644 --- a/httemplate/view/prospect_main.html +++ b/httemplate/view/prospect_main.html @@ -1,38 +1,30 @@ -<% include('/elements/header.html', - 'Prospect View: '. $prospect_main->company - ) -%> +<& /elements/header.html, $title &> % if ( $curuser->access_right('Edit prospect') ) { Edit this prospect % } -<% ntable("#cccccc",2) %> - - - Prospect # - <% $prospectnum %> - + -%unless ( scalar(@agentnums) == 1 -% && !$curuser->access_right('View customers of all agents') ) { -% my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } ); +%unless ( ! $prospect_main->refnum ) { # || scalar(@part_referral) == 1 ) { +% my $part_referral = qsearchs('part_referral',{ 'refnum' => $prospect_main->refnum } ); - - + %} % if ( $prospect_main->company ) { - + % } -% foreach my $contact ( $prospect_main->contact ) { +% foreach my $prospect_contact ( $prospect_main->prospect_contact ) { +% my $contact = $prospect_contact->contact; - + %} @@ -42,7 +34,7 @@ % #but only one, for now % foreach my $cust_location (@cust_location) { - + + + +% }
Agent<% $agent->agentnum %>: <% $agent->agent %>Advertising source + <% $part_referral->referral |h %>
CompanyCompany <% $prospect_main->company |h %>
<% $contact->contact_classname %> Contact<% $prospect_contact->contact_classname %> Contact <% $contact->line %>
AddressAddress <% $cust_location->location_label( 'join_string' => '
', @@ -59,15 +51,25 @@ &> % } % } +% if ( my $tax_status = $prospect_main->tax_status ) { +
Tax status + + <% $tax_status->taxstatus %>: <% $tax_status->description %> +

+<& /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', + 'label' => 'New Qualification', 'actionlabel' => 'New Qualification', 'color' => '#333399', 'prospect_main' => $prospect_main, @@ -80,13 +82,7 @@

% } -<% ntable("#cccccc") %> - - - Tickets - - - +%# XXX display prospect tickets <%init> @@ -112,6 +108,14 @@ my $prospect_main = qsearchs( { }); die "Prospect not found!" unless $prospect_main; +my $title = encode_entities($prospect_main->name); +$title = mt("Prospect"). ": $title"; +$title .= ' ('.mt('DISABLED').')' + if $prospect_main->disabled; + my @agentnums = $curuser->agentnums; +if (scalar(@agentnums) > 1 ) { + $title = encode_entities($prospect_main->agent->agent). " $title"; +}