blob: 3107ff9d40eec41612e78835b473e7b9c4dae58e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%
% my( $agentnum, %opt ) = @_;
%
% $opt{'records'} = delete $opt{'agents'}
% if $opt{'agents'};
%
%
<% include( '/elements/select-table.html',
'table' => 'agent',
'name_col' => 'agent',
'value' => $agentnum || '',
'empty_label' => 'all',
'hashref' => { 'disabled' => '' },
'extra_sql' => ' AND '.
$FS::CurrentUser::CurrentUser->agentnums_sql.
' ORDER BY agent',
%opt,
)
%>
|