[freeside-commits] freeside/httemplate/browse agent.cgi,1.28,1.29
Ivan,,,
ivan at wavetail.420.am
Sat Aug 6 17:40:04 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail:/tmp/cvs-serv11217/httemplate/browse
Modified Files:
agent.cgi
Log Message:
move cust_pkg search to new template, add active/suspended/cancelled customer packages to agent browse
Index: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/agent.cgi,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- agent.cgi 22 May 2005 09:25:45 -0000 1.28
+++ agent.cgi 7 Aug 2005 00:40:02 -0000 1.29
@@ -32,6 +32,7 @@
<TH COLSPAN=<%= ( $cgi->param('showdisabled') || !dbdef->table('agent')->column('disabled') ) ? 2 : 3 %>>Agent</TH>
<TH>Type</TH>
<TH>Customers</TH>
+ <TH><FONT SIZE=-1>Customer<BR>packages</FONT></TH>
<TH>Reports</TH>
<TH>Registration codes</TH>
<TH>Prepaid cards</TH>
@@ -50,6 +51,8 @@
my $cust_main_link = $p. 'search/cust_main.cgi?agentnum_on=1&'.
'agentnum='. $agent->agentnum;
+ my $cust_pkg_link = $p. 'search/cust_pkg.cgi?agentnum='. $agent->agentnum;
+
%>
<TR>
@@ -65,7 +68,6 @@
<TD><A HREF="<%=$p%>edit/agent_type.cgi?<%= $agent->typenum %>"><%= $agent->agent_type->atype %></A></TD>
<TD>
-
<TABLE CELLSPACING=0 CELLPADDING=0>
<TR>
<TH ALIGN="right" WIDTH="40%">
@@ -113,6 +115,44 @@
</TD>
<TD>
+ <TABLE CELLSPACING=0 CELLPADDING=0>
+ <TR>
+ <TH ALIGN="right" WIDTH="40%">
+ <FONT COLOR="#00CC00">
+ <%= my $num_active_pkg = $agent->num_active_cust_pkg %>
+ </FONT>
+ </TH>
+ <TD>
+ <% if ( $num_active_pkg ) { %>
+ <A HREF="<%= $cust_pkg_link %>&magic=active"><% } %>active<% if ( $num_active_pkg ) { %></A><% } %>
+ </TD>
+ </TR>
+ <TR>
+ <TH ALIGN="right" WIDTH="40%">
+ <FONT COLOR="#FF9900">
+ <%= my $num_susp_pkg = $agent->num_susp_cust_pkg %>
+ </FONT>
+ </TH>
+ <TD>
+ <% if ( $num_susp_pkg ) { %>
+ <A HREF="<%= $cust_pkg_link %>&magic=suspended"><% } %>suspended<% if ( $num_susp_pkg ) { %></A><% } %>
+ </TD>
+ </TR>
+ <TR>
+ <TH ALIGN="right" WIDTH="40%">
+ <FONT COLOR="#FF0000">
+ <%= my $num_cancel_pkg = $agent->num_cancel_cust_pkg %>
+ </FONT>
+ </TH>
+ <TD>
+ <% if ( $num_cancel_pkg ) { %>
+ <A HREF="<%= $cust_pkg_link %>&magic=cancelled"><% } %>cancelled<% if ( $num_cancel_pkg ) { %></A><% } %>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+
+ <TD>
<A HREF="<%= $p %>search/report_cust_pay.html?agentnum=<%= $agent->agentnum %>">Payments</A>
<BR><A HREF="<%= $p %>search/report_cust_credit.html?agentnum=<%= $agent->agentnum %>">Credits</A>
<BR><A HREF="<%= $p %>search/report_receivables.cgi?agentnum=<%= $agent->agentnum %>">A/R Aging</A>
More information about the freeside-commits
mailing list