X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fagent.cgi;h=8da37a2dcff7eaa8222c0f2bf43184f408b1e5c1;hb=34b6146b716903b4a4f437c95a8e403c44ba0241;hp=64288b830cad78733a7d9766822fc1358ad295d8;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index 64288b830..8da37a2dc 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 @@ -83,16 +84,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 }) @@ -150,6 +178,26 @@ inactive + + <% my $num_ordered = $agent->num_ordered_cust_main %>  + + + + +% if ( $num_ordered ) { + + +% } +ordered +% if ($num_ordered ) { + +% } + + + + + + <% my $num_active = $agent->num_active_cust_main %>  @@ -234,6 +282,11 @@ inactive + + +   + +