RT# 82137 - default payment amount now has processing fee in total if processing...
[freeside.git] / httemplate / elements / select-hardware_type.html
1 <& /elements/select-tiered.html, tiers => [
2   {
3     field     => 'classnum',
4     table     => 'hardware_class',
5     hashref   => ($classnum ? { classnum => $classnum } : {}),
6     name_col  => 'classname',
7     empty_label => '(all)',
8   },
9   {
10     field     => 'model',
11     table     => 'hardware_type',
12     select    => 'classnum, model',
13     name_col  => 'model',
14     value_col => 'model',
15     link_col  => 'classnum',
16     hashref   => $hashref,
17     extra_sql => 'GROUP BY classnum, model',
18     empty_label => '(all)',
19   },
20   {
21     table     => 'hardware_type',
22     name_col  => 'revision',
23     value_col => 'typenum',
24     link_col  => 'model',
25     empty_label => $opt{'empty_label'},
26   },
27 ],
28   field => 'typenum',
29   %opt,
30 &>
31 <%init>
32 my %opt = @_;
33 my $hashref = $opt{'hashref'} || {};
34 my $classnum = $hashref->{classnum};
35
36 </%init>