diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:47 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:47 -0800 |
| commit | ca5cca28fc6ca1b625140d7ba2a7fe48b1107e09 (patch) | |
| tree | d05482fee9abb1b4eec1a52d683224911de2c14a /httemplate/elements/tr-select-cust_payby.html | |
| parent | 44b8701e1747da62acbb104d0da7b1134d223981 (diff) | |
Use any card on file when making a payment, RT#23741
Diffstat (limited to 'httemplate/elements/tr-select-cust_payby.html')
| -rw-r--r-- | httemplate/elements/tr-select-cust_payby.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-cust_payby.html b/httemplate/elements/tr-select-cust_payby.html new file mode 100644 index 000000000..e2b2e09d1 --- /dev/null +++ b/httemplate/elements/tr-select-cust_payby.html @@ -0,0 +1,31 @@ +% if ( scalar(@{ $opt{'cust_payby'} }) == 0 ) { + + <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'custpaybynum' %>" VALUE=""> + +% } else { + + <TR> + <TH ALIGN="right"><% $opt{'label'} || 'Payment via' %></TD> + <TD> + <% include( '/elements/select-cust_payby.html', + 'curr_value' => $custpaybynum, + %opt + ) + %> + </TD> + </TR> + +% } + +<%init> + +my %opt = @_; +my $custpaybynum = $opt{'curr_value'} || $opt{'value'}; + +$opt{'cust_payby'} ||= [ qsearch( 'cust_payby', { custnum => $opt{custnum}, + disabled => '', + } + ) + ]; + +</%init> |
