projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
httemplate
/
view
/
prospect_main.html
diff --git
a/httemplate/view/prospect_main.html
b/httemplate/view/prospect_main.html
index
9e85348
..
8c93d6c
100644
(file)
--- a/
httemplate/view/prospect_main.html
+++ b/
httemplate/view/prospect_main.html
@@
-1,38
+1,30
@@
-<% include('/elements/header.html',
- 'Prospect View: '. $prospect_main->company
- )
-%>
+<& /elements/header.html, $title &>
% if ( $curuser->access_right('Edit prospect') ) {
<A HREF="<% $p %>edit/prospect_main.html?<% $prospectnum %>">Edit this prospect</A>
% }
% if ( $curuser->access_right('Edit prospect') ) {
<A HREF="<% $p %>edit/prospect_main.html?<% $prospectnum %>">Edit this prospect</A>
% }
-<% ntable("#cccccc",2) %>
-
-<TR>
- <TD ALIGN="right">Prospect #</TD>
- <TD BGCOLOR="#FFFFFF"><B><% $prospectnum %></B></TD>
-</TR>
+<TABLE CLASS="fsinnerbox">
-%unless ( scalar(@agentnums) == 1
-% && !$curuser->access_right('View customers of all agents') ) {
-% my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } );
+%unless ( ! $prospect_main->refnum ) { # || scalar(@part_referral) == 1 ) {
+% my $part_referral = qsearchs('part_referral',{ 'refnum' => $prospect_main->refnum } );
<TR>
<TR>
- <T
D ALIGN="right">Agent
</TD>
- <TD BGCOLOR="#ffffff"><% $
agent->agentnum %>: <% $agent->agent
%></TD>
+ <T
H ALIGN="right">Advertising source
</TD>
+ <TD BGCOLOR="#ffffff"><% $
part_referral->referral |h
%></TD>
</TR>
%}
% if ( $prospect_main->company ) {
<TR>
</TR>
%}
% if ( $prospect_main->company ) {
<TR>
- <T
D
ALIGN="right">Company</TD>
+ <T
H
ALIGN="right">Company</TD>
<TD BGCOLOR="#FFFFFF"><B><% $prospect_main->company |h %></B></TD>
</TR>
% }
<TD BGCOLOR="#FFFFFF"><B><% $prospect_main->company |h %></B></TD>
</TR>
% }
-% foreach my $contact ( $prospect_main->contact ) {
+% foreach my $prospect_contact ( $prospect_main->prospect_contact ) {
+% my $contact = $prospect_contact->contact;
<TR>
<TR>
- <T
D ALIGN="right"><% $
contact->contact_classname %> Contact</TD>
+ <T
H ALIGN="right"><% $prospect_
contact->contact_classname %> Contact</TD>
<TD BGCOLOR="#FFFFFF"><% $contact->line %></TD>
</TR>
%}
<TD BGCOLOR="#FFFFFF"><% $contact->line %></TD>
</TR>
%}
@@
-42,7
+34,7
@@
% #but only one, for now
% foreach my $cust_location (@cust_location) {
<TR>
% #but only one, for now
% foreach my $cust_location (@cust_location) {
<TR>
- <T
D
ALIGN="right">Address</TD>
+ <T
H
ALIGN="right">Address</TD>
<TD BGCOLOR="#FFFFFF">
<% $cust_location->location_label(
'join_string' => '<BR>',
<TD BGCOLOR="#FFFFFF">
<% $cust_location->location_label(
'join_string' => '<BR>',
@@
-59,11
+51,21
@@
&>
% }
% }
&>
% }
% }
+% if ( my $tax_status = $prospect_main->tax_status ) {
+ <TR>
+ <TH ALIGN="right">Tax status</TD>
+ <TD BGCOLOR="#FFFFFF">
+ <B><% $tax_status->taxstatus %>:</B> <% $tax_status->description %>
+ </TD>
+ </TR>
+% }
</TABLE>
<BR>
</TABLE>
<BR>
+<& /elements/quotations.html, prospect_main=>$prospect_main &>
+
% if ( $curuser->access_right('Qualify service') ) {
<% include( '/elements/popup_link-prospect_main.html',
'action' => $p. 'misc/qual.html',
% if ( $curuser->access_right('Qualify service') ) {
<% include( '/elements/popup_link-prospect_main.html',
'action' => $p. 'misc/qual.html',
@@
-80,13
+82,7
@@
<BR><BR>
% }
<BR><BR>
% }
-<% ntable("#cccccc") %>
-
-<TR>
- <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Tickets</FONT></TH>
-</TR>
-
-</TABLE>
+%# XXX display prospect tickets
<%init>
<%init>
@@
-112,6
+108,14
@@
my $prospect_main = qsearchs( {
});
die "Prospect not found!" unless $prospect_main;
});
die "Prospect not found!" unless $prospect_main;
+my $title = encode_entities($prospect_main->name);
+$title = mt("Prospect"). ": $title";
+$title .= ' ('.mt('DISABLED').')'
+ if $prospect_main->disabled;
+
my @agentnums = $curuser->agentnums;
my @agentnums = $curuser->agentnums;
+if (scalar(@agentnums) > 1 ) {
+ $title = encode_entities($prospect_main->agent->agent). " $title";
+}
</%init>
</%init>