[freeside-commits] freeside/httemplate/view prospect_main.html, 1.3, 1.4 qual.cgi, 1.2, 1.3

Erik Levinson levinse at wavetail.420.am
Tue Dec 7 12:38:54 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv31643/httemplate/view

Modified Files:
	prospect_main.html qual.cgi 
Log Message:
added prospect support to qualifications, RT7111


Index: qual.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/qual.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- qual.cgi	7 Dec 2010 19:04:43 -0000	1.2
+++ qual.cgi	7 Dec 2010 20:38:52 -0000	1.3
@@ -4,10 +4,15 @@
 
   <% include( '/elements/small_custview.html', $cust_or_prospect->custnum, '', 1,
      "${p}view/cust_main.cgi") %>
-  <BR>
 
+% } elsif ( $cust_or_prospect->get('prospectnum') ) {
+%  	my $prospectnum = $cust_or_prospect->get('prospectnum');
+% 	my $link = "${p}view/prospect_main.html?$prospectnum";
+	<A HREF="<%$link%>">Prospect #<%$prospectnum%></A>
 % }
 
+<BR><BR>
+
 <B>Qualification #<% $qual->qualnum %></B>
 <% ntable("#cccccc", 2) %>
 <% include('elements/tr.html', label => 'Status', value => $qual->status_long ) %>

Index: prospect_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/prospect_main.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- prospect_main.html	17 Jun 2010 02:08:53 -0000	1.3
+++ prospect_main.html	7 Dec 2010 20:38:52 -0000	1.4
@@ -56,6 +56,22 @@
 
 <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>



More information about the freeside-commits mailing list