summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-discount_class.html
blob: 41a27c53af51f07b177d0b99f2b33328d2ca3929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<% include( '/elements/select-table.html',
                 'table'       => 'discount_class',
                 'name_col'    => 'classname',
                 'value'       => $classnum,
                 'empty_label' => '(none)',
                 'hashref'     => { 'disabled' => '' },
                 %opt,
             )
%>
<%init>

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

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

</%init>