From 6ed5d51b3a72e2935dd5d084c9e24567150b03ca Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 7 Aug 2005 00:40:02 +0000 Subject: move cust_pkg search to new template, add active/suspended/cancelled customer packages to agent browse --- httemplate/browse/agent.cgi | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'httemplate/browse/agent.cgi') diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index c5c992704..fd360ab3c 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -32,6 +32,7 @@ full offerings (via their type).

param('showdisabled') || !dbdef->table('agent')->column('disabled') ) ? 2 : 3 %>>Agent Type Customers + Customer
packages
Reports Registration codes Prepaid cards @@ -50,6 +51,8 @@ foreach my $agent ( sort { 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; + %> @@ -65,7 +68,6 @@ foreach my $agent ( sort { <%= $agent->agent_type->atype %> -
@@ -112,6 +114,44 @@ foreach my $agent ( sort {
+ + + + + + + + + + + + + + +
+ + <%= my $num_active_pkg = $agent->num_active_cust_pkg %>  + + + <% if ( $num_active_pkg ) { %> + <% } %>active<% if ( $num_active_pkg ) { %><% } %> +
+ + <%= my $num_susp_pkg = $agent->num_susp_cust_pkg %>  + + + <% if ( $num_susp_pkg ) { %> + <% } %>suspended<% if ( $num_susp_pkg ) { %><% } %> +
+ + <%= my $num_cancel_pkg = $agent->num_cancel_cust_pkg %>  + + + <% if ( $num_cancel_pkg ) { %> + <% } %>cancelled<% if ( $num_cancel_pkg ) { %><% } %> +
+ + Payments
Credits -- cgit v1.2.1