X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fbrowse%2Fagent.cgi;h=7648915e6629cd5d9cd3426fd50323541a034de5;hb=8a00b4c10743a314f4a298879141b60d6096eb3b;hp=e9969b02a1bb681d1514343e7f60faf96bed85a2;hpb=5f6615875ca497d46c4f8cd810310d4b2db24bfd;p=freeside.git
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index e9969b02a..7648915e6 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'
)) %>
@@ -41,10 +26,13 @@ full offerings (via their type).
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') ) {
@@ -52,8 +40,7 @@ full offerings (via their type).
% }
Payment Gateway Overrides |
- Freq. |
- Prog. |
+ Configuration Overrides |
%
%# Agent # |
@@ -79,20 +66,51 @@ full offerings (via their type).
-
- <% $agent->agentnum %> |
-% if ( dbdef->table('agent')->column('disabled')
-% && !$cgi->param('showdisabled') ) {
- <% $agent->disabled ? 'DISABLED' : '' %> |
-% }
+
+ <% $agent->agentnum %>
+ |
+
+% if ( dbdef->table('agent')->column('disabled')
+% && !$cgi->param('showdisabled') ) {
+
+ <% $agent->disabled ? 'DISABLED' : '' %>
+ |
+% }
+
+ <% $agent->agent %>
+ |
-
- <% $agent->agent %> |
- <% $agent->agent_type->atype %> |
+
+ <% $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)' %>
+ |
+
+
|
-
+
+
+% foreach my $override (
+% qsearch('conf', { 'agentnum' => $agent->agentnum } )
+% ) {
+%
+
+
+
+ <% $override->name %>
+ (delete)
+ |
+
+% }
+
+
+ (add override) |
+
+
+ |
% }
@@ -370,3 +405,19 @@ Unused