X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=66abffcdd0293301a0ee56d195fb3e6e2f01a7c7;hp=689b422a47d8216f60681437292aa815451d39d6;hb=f7e13fe2f0a39fd277f2990e076b662f00c2b088;hpb=caaba136dc662ca8a5b4a221fac238b89945332a diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 689b422a4..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 @@ -76,43 +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 %> - <% mt('Setup') |h %> - <% mt('Recurring') |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 %> - <% $a %><% $quotation->total_setup |h %> - <% $a %><% $quotation->total_recur |h %> - Convert to customer - -% } - -% } -

-% } - +<& /elements/quotations.html, prospect_main=>$prospect_main &> % if ( $curuser->access_right('Qualify service') ) { <% include( '/elements/popup_link-prospect_main.html', @@ -147,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;