X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=a1f14a3745542353ff83d10386c366fa1b1ebf2a;hb=a70498f14ae5d3be7f57ce81fef703b869ccdf0a;hp=801d64bda52a4a3c0d7bcb439d8963358bf25613;hpb=81978af92ecdaaefeff5156d9ab3b4f99586df1c;p=freeside.git diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 801d64bda..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,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 %> %} @@ -30,9 +39,10 @@ % } -% foreach my $contact ( $prospect_main->contact ) { +% foreach my $prospect_contact ( $prospect_main->prospect_contact ) { +% my $contact = $prospect_contact->contact; - <% $contact->contact_classname %> Contact + <% $prospect_contact->contact_classname %> Contact <% $contact->line %> %} @@ -64,30 +74,7 @@
-% if ( $curuser->access_right('Generate quotation') ) { - <% mt( 'Quotations' ) |h %> - New quotation -% my @quotations = $prospect_main->quotation; -% if ( @quotations ) { - <& /elements/table-grid.html &> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - - # - <% mt('Date') |h %> - -% foreach my $quotation (@quotations) { - - <% $quotation->quotationnum %> - <% time2str($date_format, $quotation->_date) |h %> - -% } - -% } -

-% } - +<& /elements/quotations.html, prospect_main=>$prospect_main &> % if ( $curuser->access_right('Qualify service') ) { <% include( '/elements/popup_link-prospect_main.html', @@ -122,10 +109,6 @@ my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right('View prospect'); -my $conf = new FS::Conf; - -my $date_format = $conf->config('date_format') || '%m/%d/%Y'; - my $prospectnum; if ( $cgi->param('prospectnum') =~ /^(\d+)$/ ) { $prospectnum = $1;