1 % if ( scalar(@{ $opt{'discount_class'} }) == 0 ) {
3 <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
8 <TD ALIGN="right"><% $opt{'label'} || 'Discount class' %></TD>
10 <% include( '/elements/select-discount_class.html',
11 'curr_value' => $classnum,
23 my $classnum = $opt{'curr_value'} || $opt{'value'};
25 $opt{'discount_class'} ||= [ qsearch( 'discount_class', { disabled=>'' } ) ];