X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=d92d270977d15dd6c4969b3fed746aae5c68abc0;hb=8ef00c68688492b2afa3dde8d3d467f89f238c40;hp=9883e67663bc1fcd4da6e78b6bfba0d76ca617e1;hpb=f22b714f2b7a38c8a930d8248ccb32751db82b5e;p=freeside.git
diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html
index 9883e6766..d92d27097 100644
--- a/httemplate/view/prospect_main.html
+++ b/httemplate/view/prospect_main.html
@@ -14,7 +14,8 @@
<% $prospectnum %> |
-%unless ( scalar(@agentnums) == 1 ) {
+%unless ( scalar(@agentnums) == 1
+% && !$curuser->access_right('View customers of all agents') ) {
% my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } );
Agent |
@@ -22,10 +23,12 @@
%}
-
- Company |
- <% $prospect_main->company |h %> |
-
+% if ( $prospect_main->company ) {
+
+ Company |
+ <% $prospect_main->company |h %> |
+
+% }
% foreach my $contact ( $prospect_main->contact ) {
@@ -55,6 +58,22 @@
+% if ( $curuser->access_right('Qualify service') ) {
+<% include( '/elements/popup_link-prospect_main.html',
+ 'action' => $p. 'misc/qual.html',
+ 'label' => 'New Qualification',
+ 'actionlabel' => 'New Qualification',
+ 'color' => '#333399',
+ 'prospect_main' => $prospect_main,
+ 'closetext' => 'Close',
+ 'width' => 763,
+ 'height' => 436,
+ )
+%>
+ | View Qualifications
+
+% }
+
<% ntable("#cccccc") %>