X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=66abffcdd0293301a0ee56d195fb3e6e2f01a7c7;hb=b7cf1606a66cca95e3540f803ffa66d223f23a40;hp=801d64bda52a4a3c0d7bcb439d8963358bf25613;hpb=81978af92ecdaaefeff5156d9ab3b4f99586df1c;p=freeside.git
diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html
index 801d64bda..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 %> |
%}
@@ -64,30 +73,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 +108,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;