blob: e0b6e6cbe5712bb4037c8631cc9caa337816ff7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<% include( '/elements/select-table.html',
'table' => 'discount',
'name_col' => 'description',
'order_by' => 'ORDER BY discountnum', #XXX weight
'value' => $discountnum,
'empty_label' => '(none)',
'hashref' => { 'disabled' => '' },
%opt,
)
%>
<%init>
my %opt = @_;
my $discountnum = $opt{'curr_value'} || $opt{'value'};
$opt{'records'} = delete $opt{'discount'}
if $opt{'discount'};
</%init>
|