X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=64288b830cad78733a7d9766822fc1358ad295d8;hb=645538bbc9e4d15f399181db04411f45805d37c8;hp=46a92443331d1f8c4cf3d29d354bd42b0c40ee5c;hpb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;p=freeside.git diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index 46a924433..64288b830 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -1,5 +1,4 @@ <% include("/elements/header.html",'Agent Listing', menubar( - 'Main Menu' => $p, 'Agent Types' => $p. 'browse/agent_type.cgi', # 'Add new agent' => '../edit/agent.cgi' )) %> @@ -21,30 +20,29 @@ full offerings (via their type).

% my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; -% - param('showdisabled') || !dbdef->table('agent')->column('disabled') ) ? 2 : 3 %>>Agent Type + Master Customer + Access Groups Invoice
Template
Customers Customer
packages
Reports Registration
codes
Prepaid cards -% if ( $conf->config('ticket_system') ) { +% if ( $conf->config('ticket_system') ) { Ticketing % } Payment Gateway Overrides Configuration Overrides -% + %# Agent # %# Agent -% %foreach my $agent ( sort { % #$a->getfield('agentnum') <=> $b->getfield('agentnum') % $a->getfield('agent') cmp $b->getfield('agent') @@ -60,9 +58,6 @@ full offerings (via their type).

% } else { % $bgcolor = $bgcolor1; % } -% -% - @@ -70,10 +65,11 @@ full offerings (via their type).

<% $agent->agentnum %> -% if ( dbdef->table('agent')->column('disabled') -% && !$cgi->param('showdisabled') ) { - - <% $agent->disabled ? 'DISABLED' : '' %> +% if ( ! $cgi->param('showdisabled') ) { + + <% $agent->disabled ? 'DISABLED' + : 'Active' + %> % } @@ -85,11 +81,31 @@ full offerings (via their type).

<% $agent->agent_type->atype %> + +% if ( $agent->agent_custnum ) { + <% include('/elements/small_custview.html', + $agent->agent_custnum, + scalar($conf->config('countrydefault')), + 1, #show balance + ) + %> +% } + + + +% foreach my $access_group ( +% map $_->access_group, +% qsearch('access_groupagent', { 'agentnum' => $agent->agentnum }) +% ) { + <% $access_group->groupname |h %>
+% } + + <% $agent->invoice_template || '(Default)' %> - + @@ -282,9 +298,10 @@ cancelled @@ -344,7 +361,7 @@ Unused ? ' for '. $override->taxclass. ' only' : '' %> - (delete) + (delete) % } @@ -364,14 +381,13 @@ Unused % } - +
- Payments + Package Churn +
Payments
Credits -
A/R Aging +
A/R Aging
- <% $override->name %> - (delete) + <% $override->name %> (delete)
(add override)(view/add/edit overrides)
@@ -381,6 +397,14 @@ Unused + + + <%init>