X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=25524323de2156bb14d99c5689a21c67c6e888f9;hb=615b19cd8d6ce68be77f2684e491a980957c8475;hp=7648915e6629cd5d9cd3426fd50323541a034de5;hpb=8a00b4c10743a314f4a298879141b60d6096eb3b;p=freeside.git diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index 7648915e6..25524323d 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -20,13 +20,12 @@ 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 + Commissions Access Groups Invoice
Template
Customers @@ -34,18 +33,21 @@ full offerings (via their type).

Reports Registration
codes
Prepaid cards -% if ( $conf->config('ticket_system') ) { +% if ( $conf->config('ticket_system') ) { Ticketing % } +% if ( $conf->config('currencies') ) { + Currencies +% } + Payment Gateway Overrides Configuration Overrides -% + %# Agent # %# Agent -% %foreach my $agent ( sort { % #$a->getfield('agentnum') <=> $b->getfield('agentnum') % $a->getfield('agent') cmp $b->getfield('agent') @@ -61,9 +63,6 @@ full offerings (via their type).

% } else { % $bgcolor = $bgcolor1; % } -% -% - @@ -71,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' + %> % } @@ -88,15 +88,42 @@ 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, @@ -153,6 +180,26 @@ inactive + + + + <% my $num_ordered = $agent->num_ordered_cust_main %>  + + + + +% if ( $num_ordered ) { + + +% } +ordered +% if ($num_ordered ) { + +% } + + + + @@ -239,6 +286,11 @@ inactive + + +   + + @@ -338,19 +390,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 } ) %> % } - % foreach my $override ( @@ -366,7 +422,7 @@ Unused ? ' for '. $override->taxclass. ' only' : '' %> - (delete) + (delete) % } @@ -386,14 +442,13 @@ Unused % } - +
- <% $override->name %> - (delete) + <% $override->name %> (delete)
(add override)(view/add/edit overrides)
@@ -403,6 +458,14 @@ Unused + + + <%init>