X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fprospect_main.html;h=a1f14a3745542353ff83d10386c366fa1b1ebf2a;hb=167dbdad01e2c1b62fd9be43cc05212e8c874a02;hp=689b422a47d8216f60681437292aa815451d39d6;hpb=d2acdd4d53071f9e0f9718e14532cb009cda1a85;p=freeside.git
diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html
index 689b422a4..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
@@ -42,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 %> |
%}
@@ -76,43 +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 %> |
- <% 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 +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;