blob: a726cb398020a438f2d6da77d53be77ccf4f4326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<% include( '/elements/select-table.html',
'table' => 'cust_payby',
'name_col' => 'label',
'value' => $custpaybynum,
'disable_empty' => 1,
'post_options' => [ '0' => 'Enter new payment information' ],
'hashref' => { 'custnum' => $opt{'custnum'},
'disabled' => '',
},
%opt,
)
%>
<%init>
my %opt = @_;
my $custpaybynum = $opt{'curr_value'} || $opt{'value'};
if ( $opt{'cust_payby'} ) {
$opt{'records'} = delete $opt{'cust_payby'};
$opt{'presorted'} = 1 if ! exists($opt{'presorted'});
}
</%init>
|