1 <% include ('tr-td-label.html', 'label' => 'Payment type', @_ ) %>
5 <% include( '/elements/select-payby.html',
6 'curr_value' => $curr_value,
19 #my $onchange = $opt{'onchange'}
20 # ? 'onChange="'. $opt{'onchange'}. '(this)"'
23 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
25 my $method = 'payby2longname';
26 $method = 'cust_payby2longname' if $opt{'payby_type'} eq 'cust';
27 #$method = 'event_payby2longname' if $opt{'payby_type'} eq 'event';
28 #$method = 'pay_payby2longname' if $opt{'payby_type'} eq 'pay';
30 unless ( $opt{'paybys'} ) {
31 tie %{ $opt{'paybys'} }, 'Tie::IxHash', FS::payby->$method();
34 my $curr_value = $opt{'curr_value'} || $opt{'value'};