1 <% include( '/elements/select-table.html',
3 'name_col' => 'description',
4 'order_by' => 'ORDER BY discountnum', #XXX weight
5 'value' => $discountnum,
6 'empty_label' => '(none)',
7 'hashref' => { 'disabled' => '' },
8 'post_options' => $post_options,
15 my $discountnum = $opt{'curr_value'} || $opt{'value'};
17 $opt{'records'} = delete $opt{'discount'}
20 my $curuser = $FS::CurrentUser::CurrentUser;
22 #make an opt if we need to turn this off
23 my $post_options = $curuser->access_right('Custom discount customer package')
24 ? [ -1 => 'Custom discount' ]