X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fbrowse%2Fagent.cgi;h=64288b830cad78733a7d9766822fc1358ad295d8;hb=f913c65e8fb3ceb9a434b1701a1dac73e4e49c44;hp=001e6ba5051aa2b216e4bd9d242bc37d7cb22020;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index 001e6ba50..64288b830 100755
--- a/httemplate/browse/agent.cgi
+++ b/httemplate/browse/agent.cgi
@@ -1,19 +1,4 @@
-%
-%
-% my %search;
-% if ( $cgi->param('showdisabled')
-% || !dbdef->table('agent')->column('disabled') ) {
-% %search = ();
-% } else {
-% %search = ( 'disabled' => '' );
-% }
-%
-% my $conf = new FS::Conf;
-%
-%
-
<% include("/elements/header.html",'Agent Listing', menubar(
- 'Main Menu' => $p,
'Agent Types' => $p. 'browse/agent_type.cgi',
# 'Add new agent' => '../edit/agent.cgi'
)) %>
@@ -35,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 |
+ Registration codes |
Prepaid cards |
-% if ( $conf->config('ticket_system') ) {
+% if ( $conf->config('ticket_system') ) {
Ticketing |
% }
Payment Gateway Overrides |
- Freq. |
- Prog. |
+ Configuration Overrides |
-%
+
%# Agent # |
%# Agent |
-%
%foreach my $agent ( sort {
% #$a->getfield('agentnum') <=> $b->getfield('agentnum')
% $a->getfield('agent') cmp $b->getfield('agent')
@@ -74,25 +58,54 @@ full offerings (via their type).
% } else {
% $bgcolor = $bgcolor1;
% }
-%
-%
-
-
- <% $agent->agentnum %> |
-% if ( dbdef->table('agent')->column('disabled')
-% && !$cgi->param('showdisabled') ) {
- <% $agent->disabled ? 'DISABLED' : '' %> |
-% }
+
+ <% $agent->agentnum %>
+ |
+% if ( ! $cgi->param('showdisabled') ) {
+
+ <% $agent->disabled ? 'DISABLED'
+ : 'Active'
+ %>
+ |
+% }
-
- <% $agent->agent %> |
- <% $agent->agent_type->atype %> |
+
+ <% $agent->agent %>
+ |
+
+
+ <% $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)' %>
+ |
+
+
@@ -285,9 +298,10 @@ cancelled
- Payments
+ Package Churn
+ Payments
Credits
- A/R Aging
+ A/R Aging
|
@@ -332,8 +346,8 @@ Unused
% }
-
-
+
+
% foreach my $override (
% # sort { } want taxclass-full stuff first? and default cards (empty cardtype)
% qsearch('agent_payment_gateway', { 'agentnum' => $agent->agentnum } )
@@ -347,7 +361,7 @@ Unused
? ' for '. $override->taxclass. ' only'
: ''
%>
- (delete)
+ (delete)
% }
@@ -358,15 +372,54 @@ Unused
|
-
+
+
+% foreach my $override (
+% qsearch('conf', { 'agentnum' => $agent->agentnum } )
+% ) {
+%
+
+
+
+ <% $override->name %> (delete)
+ |
+
+% }
+
+
+ (view/add/edit overrides) |
+
+
+ |
% }
+
+
+
| |