+
+
+ <% $agent->agentnum %>
+ |
+
+% if ( ! $cgi->param('showdisabled') ) {
+
+ <% $agent->disabled ? 'DISABLED'
+ : 'Active'
+ %>
+ |
+% }
+
+
+ <% $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
+ )
+ %>
+% }
+ |
+
+
+
+
+
+% #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 })
+% ) {
+ <% $access_group->groupname |h %>
+% }
+ |
+
+
+ <% $agent->invoice_template || '(Default)' %>
+ |
+
+
+
|
-
-
+
+
|
-
- Payments
- Credits
- A/R Aging
-
+ |
+ Package Churn
+ Payments
+ Credits
+ A/R Aging
+
|
-
- <%= my $num_reg_code = $agent->num_reg_code %>
- <% if ( $num_reg_code ) { %>
- <% } %>Unused<% if ( $num_reg_code ) { %><% } %>
- Generate codes
+ |
+ <% my $num_reg_code = $agent->num_reg_code %>
+% if ( $num_reg_code ) {
+
+
+% }
+Unused
+% if ( $num_reg_code ) {
+
+% }
+
+ Generate codes
|
-
- <%= my $num_prepay_credit = $agent->num_prepay_credit %>
- <% if ( $num_prepay_credit ) { %>
- <% } %>Unused<% if ( $num_prepay_credit ) { %><% } %>
- Generate cards
+ |
+ <% my $num_prepay_credit = $agent->num_prepay_credit %>
+% if ( $num_prepay_credit ) {
+
+
+% }
+Unused
+% if ( $num_prepay_credit ) {
+
+% }
+
+ Generate cards
|
-
-
- <% foreach my $override (
- # sort { } want taxclass-full stuff first? and default cards (empty cardtype)
- qsearch('agent_payment_gateway', { 'agentnum' => $agent->agentnum } )
- ) {
- %>
+% if ( $conf->config('ticket_system') ) {
+
+% 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 (
+% # sort { } want taxclass-full stuff first? and default cards (empty cardtype)
+% qsearch('agent_payment_gateway', { 'agentnum' => $agent->agentnum } )
+% ) {
+%
+
- <%= $override->cardtype || 'Default' %> to <%= $override->payment_gateway->gateway_module %> (<%= $override->payment_gateway->gateway_username %>)
- <%= $override->taxclass
+ <% $override->cardtype || 'Default' %> to <% $override->payment_gateway->gateway_module %> (<% $override->payment_gateway->gateway_username %>)
+ <% $override->taxclass
? ' for '. $override->taxclass. ' only'
: ''
%>
- (delete)
+ (delete)
|
- <% } %>
+% }
+
- (add override) |
+ (add override) |
|
- <%= $agent->freq %> |
- <%= $agent->prog %> |
+
+
+% foreach my $override (
+% qsearch('conf', { 'agentnum' => $agent->agentnum } )
+% ) {
+%
+
+
+
+ <% $override->name %> (delete)
+ |
+
+% }
+
+
+ (view/add/edit overrides) |
+
+
+ |
+% }
-<% } %>
+
+
+
| |