-
- $hashref->{agentnum} |
-
- $hashref->{agent} |
- $atype |
- $hashref->{freq} |
- $hashref->{prog} |
+
+ <%= $agent->agentnum %> |
+<% if ( dbdef->table('agent')->column('disabled')
+ && !$cgi->param('showdisabled') ) { %>
+ <%= $agent->disabled ? 'DISABLED' : '' %> |
+<% } %>
+
+
+ <%= $agent->agent %> |
+ <%= $agent->agent_type->atype %> |
+
+
+
+ |
+
+
+
+ |
+
+
+ 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_prepay_credit = $agent->num_prepay_credit %>
+ <% if ( $num_prepay_credit ) { %>
+ <% } %>Unused<% if ( $num_prepay_credit ) { %><% } %>
+ Generate cards
+ |
+
+ <% if ( $conf->config('ticket_system') ) { %>
+
+
+ <% if ( $agent->ticketing_queueid ) { %>
+ Queue: <%= $agent->ticketing_queueid %>: <%= $agent->ticketing_queue %>
+ <% } %>
+ |
+
+ <% } %>
+
+
+
+ <% 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
+ ? ' for '. $override->taxclass. ' only'
+ : ''
+ %>
+ (delete)
+ |
+
+ <% } %>
+
+ (add override) |
+
+
+ |
+
+ <%= $agent->freq %> |
+ <%= $agent->prog %> |
+
-END
-}
+<% } %>
-print <