diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/elements/select-discount.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/elements/select-discount.html')
-rw-r--r-- | httemplate/elements/select-discount.html | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/httemplate/elements/select-discount.html b/httemplate/elements/select-discount.html deleted file mode 100644 index b7f1fa5be..000000000 --- a/httemplate/elements/select-discount.html +++ /dev/null @@ -1,28 +0,0 @@ -<% include( '/elements/select-table.html', - 'table' => 'discount', - 'name_col' => 'description', - 'order_by' => 'ORDER BY discountnum', #XXX weight - 'value' => $discountnum, - 'empty_label' => '(none)', - 'hashref' => { 'disabled' => '' }, - 'post_options' => $post_options, - %opt, - ) -%> -<%init> - -my %opt = @_; -my $discountnum = $opt{'curr_value'} || $opt{'value'}; - -$opt{'records'} = delete $opt{'discount'} - if $opt{'discount'}; - -my $curuser = $FS::CurrentUser::CurrentUser; - -#make an opt if we need to turn this off -my $post_options = $curuser->access_right('Custom discount customer package') - ? [ -1 => 'Custom discount' ] - : []; - -</%init> - |