summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-sales.html
blob: 555799ead764efaaee8cb5b170353f754f13c5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<& /elements/select-table.html,
                 'table'         => 'sales',
                 'name_col'      => 'salesperson',
                 'value'         => $salesnum || '',
                 'agent_virt'    => 1,
                 'empty_label'   => emt('(none)'),
                 'hashref'       => { 'disabled' => '' },
                 'order_by'      => ' ORDER BY salesperson',
                 %opt,
&>
<%init>

my %opt = @_;
my $salesnum = $opt{'curr_value'} || $opt{'value'};

$opt{'records'} = delete $opt{'sales'}
  if $opt{'sales'};

</%init>