diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:43 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:43 -0800 |
commit | 5d089cbe4980f7c9c25b83e164099b22bc59eead (patch) | |
tree | 9c1668cb5003e706b7f2f61ab8c54c9795576572 /httemplate/elements/tr-select-cust_payby.html | |
parent | 9db332d80967969856c5b5fe8b6ac91304734b04 (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> |