diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-09-16 23:39:45 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-09-16 23:39:45 -0700 |
commit | f7e13fe2f0a39fd277f2990e076b662f00c2b088 (patch) | |
tree | 872b33fcb7baa80ee6fc75e8dec8bc609338bb96 /httemplate/view/prospect_main.html | |
parent | caaba136dc662ca8a5b4a221fac238b89945332a (diff) |
customer quotations are work orders? RT#25561
Diffstat (limited to 'httemplate/view/prospect_main.html')
-rw-r--r-- | httemplate/view/prospect_main.html | 47 |
1 files changed, 2 insertions, 45 deletions
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') ) { <A HREF="<% $p %>edit/prospect_main.html?<% $prospectnum %>">Edit this prospect</A> @@ -76,43 +73,7 @@ <BR> -% if ( $curuser->access_right('Generate quotation') ) { - <FONT CLASS="fsinnerbox-title"><% mt( 'Quotations' ) |h %></FONT> - <A HREF="<%$p%>edit/quotation.html?prospectnum=<% $prospectnum %>">New quotation</A> -% my @quotations = $prospect_main->quotation; -% if ( @quotations ) { - <& /elements/table-grid.html &> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - <TR> - <TH CLASS="grid" BGCOLOR="#cccccc">#</TH> - <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Date') |h %></TH> - <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Setup') |h %></TH> - <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Recurring') |h %></TH> - <TH CLASS="grid" BGCOLOR="#cccccc"></TH> - </TR> -% foreach my $quotation (@quotations) { -% if ( $bgcolor eq $bgcolor1 ) { -% $bgcolor = $bgcolor2; -% } else { -% $bgcolor = $bgcolor1; -% } -% my $a = qq(<A HREF="$p/view/quotation.html?quotationnum=). #" -% $quotation->quotationnum. '">'; - <TR> - <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $a %><% $quotation->quotationnum %></A></TD> - <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $a %><% time2str($date_format, $quotation->_date) |h %></A></TD> - <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $a %><% $quotation->total_setup |h %></A></TD> - <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $a %><% $quotation->total_recur |h %></A></TD> - <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><A HREF="<%$p%>edit/process/quotation_convert.html?quotationnum=<% $quotation->quotationnum %>">Convert to customer</A></TD> - </TR> -% } - </TABLE> -% } - <BR><BR> -% } - +<& /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; |