X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=6f2864106ca28f0715fef23aa8183c1cc77b9a4b;hb=ce86623467df8a58fc8833a490ff69f447df4b25;hp=1c06f1b15c3904796cfa77f7f8651732a7f2af6b;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi
index 1c06f1b15..6f2864106 100755
--- a/httemplate/browse/agent.cgi
+++ b/httemplate/browse/agent.cgi
@@ -25,6 +25,7 @@ full offerings (via their type).
param('showdisabled') || !dbdef->table('agent')->column('disabled') ) ? 2 : 3 %>>Agent |
Type |
Master Customer |
+ Commissions |
Access Groups |
Invoice Template |
Customers |
@@ -37,6 +38,10 @@ full offerings (via their type).
Ticketing |
% }
+% if ( $conf->config('currencies') ) {
+ Currencies |
+% }
+
Payment Gateway Overrides |
Configuration Overrides |
@@ -65,10 +70,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'
+ %>
|
% }
@@ -82,16 +88,43 @@ full offerings (via their type).
% if ( $agent->agent_custnum ) {
- <% include('/elements/small_custview.html',
- $agent->agent_custnum,
- scalar($conf->config('countrydefault')),
- 1, #show balance
- )
- %>
+ <& /elements/small_custview.html,
+ $agent->agent_custnum,
+ scalar($conf->config('countrydefault')),
+ 1, #show balance
+ $p.'view/cust_main.cgi',
+ &>
% }
|
+
+
+
+% #surprising amount of false laziness w/ edit/process/agent.cgi
+% my @pkg_class = qsearch('pkg_class', { 'disabled'=>'' });
+% foreach my $pkg_class ( '', @pkg_class ) {
+% my %agent_pkg_class = ( 'agentnum' => $agent->agentnum,
+% 'classnum' => $pkg_class ? $pkg_class->classnum : ''
+% );
+% my $agent_pkg_class =
+% qsearchs( 'agent_pkg_class', \%agent_pkg_class )
+% || new FS::agent_pkg_class \%agent_pkg_class;
+% my $param = 'classnum'. $agent_pkg_class{classnum};
+
+
+ <% $agent_pkg_class->commission_percent || 0 %>% |
+ <% $pkg_class ? $pkg_class->classname : mt('(no package class)') |h %>
+ |
+
+
+% }
+
+
+
+ |
+
+
% foreach my $access_group (
% map $_->access_group,
% qsearch('access_groupagent', { 'agentnum' => $agent->agentnum })
@@ -332,19 +365,23 @@ Unused
Generate cards
|
-% if ( $conf->config('ticket_system') ) {
-
+% if ( $conf->config('ticket_system') ) {
-% if ( $agent->ticketing_queueid ) {
-
- Queue: <% $agent->ticketing_queueid %>: <% $agent->ticketing_queue %>
+% if ( $agent->ticketing_queueid ) {
+ Queue: <% $agent->ticketing_queueid %>:
+ <% $agent->ticketing_queue %>
+
+% }
+ |
% }
+% if ( $conf->config('currencies') ) {
+
+ <% join(' ', sort keys %{ $agent->agent_currency_hashref } ) %>
|
% }
-
|