X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=b5ef64f489f0a0523450dffd8a8a58322152be3a;hb=1cde870268b03197da75f089669d60a7ba3c5617;hp=6c4595dbe1b0c75586e8e401a140e5664cc01c7f;hpb=8f89376bceb710bceb8d2d3b9dd7fe24e7d47cf3;p=freeside.git diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 6c4595dbe..b5ef64f48 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 %> %} @@ -59,42 +69,20 @@ &> % } % } +% if ( my $tax_status = $prospect_main->tax_status ) { + + Tax status + + <% $tax_status->taxstatus %>: <% $tax_status->description %> + + +% }
-% 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) { -% if ( $bgcolor eq $bgcolor1 ) { -% $bgcolor = $bgcolor2; -% } else { -% $bgcolor = $bgcolor1; -% } -% my $a = qq(quotationnum. '">'; - - <% $a %><% $quotation->quotationnum %> - <% $a %><% 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', @@ -129,10 +117,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;