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/tr-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/tr-select-discount_class.html')
| -rw-r--r-- | httemplate/elements/tr-select-discount_class.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-discount_class.html b/httemplate/elements/tr-select-discount_class.html new file mode 100644 index 000000000..5489fe6e8 --- /dev/null +++ b/httemplate/elements/tr-select-discount_class.html @@ -0,0 +1,27 @@ +% if ( scalar(@{ $opt{'discount_class'} }) == 0 ) { + + <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE=""> + +% } else { + + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Discount class' %></TD> + <TD> + <% include( '/elements/select-discount_class.html', + 'curr_value' => $classnum, + %opt + ) + %> + </TD> + </TR> + +% } + +<%init> + +my %opt = @_; +my $classnum = $opt{'curr_value'} || $opt{'value'}; + +$opt{'discount_class'} ||= [ qsearch( 'discount_class', { disabled=>'' } ) ]; + +</%init> |
