5 <& /elements/tr-select-agent-sales.html,
6 'agent_empty_label' => '(any)', #defaults to "all"
7 'sales_disable_empty' => 1, #defaults with empty enabled
11 % if ( $curuser->report_salesnum ) {
13 <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $curuser->report_sales->agentnum %>">
14 <INPUT TYPE="hidden" NAME="salesnum" VALUE="<% $curuser->report_salesnum %>">
18 <& /elements/tr-select-agent.html,
19 'onchange' => 'agent_changed(this)',
20 'empty_label' => $opt{agent_empty_label},
23 <SCRIPT TYPE="text/javascript">
25 function agent_changed(what) {
26 salesnum_agentnum_changed(what);
29 <&| /elements/onload.js &>
30 agent_changed(document.getElementById('agentnum'))
35 <& /elements/tr-select-sales.html,
36 'empty_label' => 'all',
37 'disable_empty' => $opt{sales_disable_empty},
45 my $curuser = $FS::CurrentUser::CurrentUser;