diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-09-16 06:41:00 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-09-16 06:41:00 -0700 |
commit | d2acdd4d53071f9e0f9718e14532cb009cda1a85 (patch) | |
tree | d37bee5fe01624661dbd500aae4bb46b30283a2c /httemplate | |
parent | a1c723188509e9e251b233672e68327bb4ad42e7 (diff) |
convert prospects to customers via quotations, RT#20688
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/prospect_main.html | 6 | ||||
-rw-r--r-- | httemplate/search/prospect_main.html | 2 | ||||
-rw-r--r-- | httemplate/view/prospect_main.html | 22 |
3 files changed, 28 insertions, 2 deletions
diff --git a/httemplate/edit/prospect_main.html b/httemplate/edit/prospect_main.html index d3985410b..da5c6ce37 100644 --- a/httemplate/edit/prospect_main.html +++ b/httemplate/edit/prospect_main.html @@ -3,6 +3,7 @@ 'table' => 'prospect_main', 'labels' => { 'prospectnum' => 'Prospect', 'agentnum' => 'Agent', + 'refnum' => 'Advertising source', 'company' => 'Company', 'contactnum' => 'Contact', 'locationnum' => ' ', @@ -13,6 +14,11 @@ 'empty_label' => 'Select agent', 'colspan' => 6, }, + { 'field' => 'refnum', + 'type' => 'select-part_referral', + 'empty_label' => 'Select advertising source', + 'colspan' => 6, + }, { 'field' => 'residential_commercial', 'type' => 'radio', 'options' => [ 'Residential', 'Commercial', ], diff --git a/httemplate/search/prospect_main.html b/httemplate/search/prospect_main.html index ab37b9089..4798f58f2 100644 --- a/httemplate/search/prospect_main.html +++ b/httemplate/search/prospect_main.html @@ -23,6 +23,8 @@ '', #link to contact edit??? ], 'agent_virt' => 1, + 'disableable' => 1, + 'disabled_statuspos' => 2, &> <%init> diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 6c4595dbe..689b422a4 100644 --- a/httemplate/view/prospect_main.html +++ b/httemplate/view/prospect_main.html @@ -11,7 +11,11 @@ <TR> <TD ALIGN="right">Prospect #</TD> - <TD BGCOLOR="#FFFFFF"><B><% $prospectnum %></B></TD> + <TD BGCOLOR="#FFFFFF"><B><% $prospectnum %></B> +% if ( $prospect_main->disabled ) { + <B>(DISABLED)</B> +% } + </TD> </TR> %unless ( scalar(@agentnums) == 1 @@ -19,7 +23,15 @@ % my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } ); <TR> <TD ALIGN="right">Agent</TD> - <TD BGCOLOR="#ffffff"><% $agent->agentnum %>: <% $agent->agent %></TD> + <TD BGCOLOR="#ffffff"><% $agent->agentnum %>: <% $agent->agent |h %></TD> + </TR> +%} + +%unless ( ! $prospect_main->refnum ) { # || scalar(@part_referral) == 1 ) { +% my $part_referral = qsearchs('part_referral',{ 'refnum' => $prospect_main->refnum } ); + <TR> + <TD ALIGN="right">Advertising source</TD> + <TD BGCOLOR="#ffffff"><% $part_referral->referral |h %></TD> </TR> %} @@ -76,6 +88,9 @@ <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 ) { @@ -88,6 +103,9 @@ <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> |