fix A/R report
[freeside.git] / httemplate / elements / tr-select-payby.html
1 <& tr-td-label.html, 'label' => emt('Payment type'), @_  &>
2
3   <TD <% $style %>>
4
5     <& /elements/select-payby.html, 
6                   'curr_value'  => $curr_value,
7                   %opt
8     &>
9
10   </TD>
11
12 </TR>
13
14 <%init>
15
16 my %opt = @_;
17
18 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
19
20 my $method = 'payby2longname';
21 $method = 'cust_payby2longname'  if $opt{'payby_type'} eq 'cust';
22
23 unless ( $opt{'paybys'} ) {
24   tie %{ $opt{'paybys'} }, 'Tie::IxHash', FS::payby->$method();
25 }
26
27 my $curr_value = $opt{'curr_value'} || $opt{'value'};
28
29 </%init>
30