manual batch approval and TD EFT fixes, RT#10545
[freeside.git] / httemplate / view / prospect_main.html
index 9883e67..f4b2f58 100644 (file)
@@ -14,7 +14,8 @@
   <TD BGCOLOR="#FFFFFF"><B><% $prospectnum %></B></TD>
 </TR>
 
-%unless ( scalar(@agentnums) == 1 ) {
+%unless ( scalar(@agentnums) == 1
+%         && !$curuser->access_right('View customers of all agents') ) {
 %  my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } );
    <TR>
      <TD ALIGN="right">Agent</TD>
 
 <BR>
 
+% if ( $curuser->access_right('Qualify service') ) { 
+<% include( '/elements/popup_link-prospect_main.html',
+              'action'      => $p. 'misc/qual.html',
+              'label'       => 'New&nbsp;Qualification',
+              'actionlabel' => 'New Qualification',
+              'color'       => '#333399',
+              'prospect_main'   => $prospect_main,
+              'closetext'   => 'Close',
+              'width'       => 763,
+              'height'      => 436,
+          )
+%>
+  | <A HREF="<%$p%>search/qual.cgi?prospectnum=<% $prospect_main->prospectnum %>">View Qualifications</A>
+    <BR><BR>
+% }
+
 <% ntable("#cccccc") %>
 
 <TR>