diff options
| author | Rob Van Dam <rvandam00@gmail.com> | 2013-11-07 15:27:24 -0700 |
|---|---|---|
| committer | Rob Van Dam <rvandam00@gmail.com> | 2013-11-07 15:27:24 -0700 |
| commit | df1ebf662a9fc3f89503036e0dbf6833c1b95f9e (patch) | |
| tree | f62eafd9d77427277e6aaa4353fb3bf8567926fd /httemplate/elements/select-discount_class.html | |
| parent | 45cd27b19e8ad50f835915746fb89e486cbb69c0 (diff) | |
| parent | a180208786cccb72ab017e39fff0cb128aa6ba01 (diff) | |
Merge remote-tracking branch 'upstream/master'
Conflicts:
FS/FS/cust_pkg.pm
Diffstat (limited to 'httemplate/elements/select-discount_class.html')
| -rw-r--r-- | httemplate/elements/select-discount_class.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/elements/select-discount_class.html b/httemplate/elements/select-discount_class.html new file mode 100644 index 000000000..41a27c53a --- /dev/null +++ b/httemplate/elements/select-discount_class.html @@ -0,0 +1,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> |
