% if ( scalar(@{ $opt{'discount_class'} }) == 0 ) {
% } else {
<% $opt{'label'} || 'Discount class' %> |
<% include( '/elements/select-discount_class.html',
'curr_value' => $classnum,
%opt
)
%>
|
% }
<%init>
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
$opt{'discount_class'} ||= [ qsearch( 'discount_class', { disabled=>'' } ) ];
%init>