fix per-user commission reports to filter packages they didn't order, RT#15634
[freeside.git] / rt / share / html / Elements / SelectCustomerAgent
1 % return if ($RT::URI::freeside::IntegrationType ne 'Internal');
2 <select name="<%$Name%>">
3 % if ($ShowNullOption) {
4   <option value="">-</option>
5 % }
6 % for my $agent (qsearch('agent', {'disabled' => ''})) {
7   <option value="<%$agent->agentnum%>" <% 
8   $agent->agentnum == $Default||'' ? 'selected' : ''%>
9   ><%$agent->agent%></option>
10 % }
11 </select>
12 <%init></%init>
13 <%args>
14 $ShowNullOption => 1
15 $Name => undef
16 $Default => 0
17 </%args>