diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-06-12 09:51:58 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-07-16 09:57:44 -0400 |
| commit | b4647550d33068067925f7f3fe8d6fe4f02a67e4 (patch) | |
| tree | 3f77bd8ae4e090ba2c9c03f5bb73ae33aa5901c6 /httemplate/edit/cust_refund.cgi | |
| parent | 639e88d37ab33deeea4db7c8d1f15e8967f1826f (diff) | |
RT# 74435 - fixed errors in posting a echeck refund when no account is listed.
Conflicts:
FS/FS/cust_main/Billing_Batch.pm
httemplate/elements/tr-select-cust_payby.html
httemplate/misc/payment.cgi
httemplate/misc/process/payment.cgi
Diffstat (limited to 'httemplate/edit/cust_refund.cgi')
| -rwxr-xr-x | httemplate/edit/cust_refund.cgi | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index e1975ed70..473648f42 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -85,6 +85,7 @@ <BR>Refund + <% ntable("#cccccc", 2) %> <TR> @@ -105,6 +106,19 @@ % } % elsif ($payby eq 'CHEK') { % +<SCRIPT TYPE="text/javascript"> + function cust_payby_changed (what) { + var custpaybynum = what.options[what.selectedIndex].value + if ( custpaybynum == '' || custpaybynum == '0' ) { + //what.form.payinfo.disabled = false; + $('#cust_payby').slideDown(); + } else { + //what.form.payinfo.value = ''; + //what.form.payinfo.disabled = true; + $('#cust_payby').slideUp(); + } + } +</SCRIPT> % my @cust_payby = (); % if ( $payby eq 'CARD' ) { % @cust_payby = $cust_main->cust_payby('CARD','DCRD'); @@ -123,10 +137,30 @@ 'onchange' => 'cust_payby_changed(this)', &> <INPUT TYPE="hidden" NAME="batch" VALUE="1"> + </TABLE> +<P> +<DIV ID="cust_payby" + <% $custpaybynum ? 'STYLE="display:none"' + : '' + %> +> +<TABLE class="fsinnerbox"> + +<& /elements/cust_payby_new.html, + 'cust_payby' => \@cust_payby, + 'curr_value' => $custpaybynum, +&> + +</TABLE> +</DIV> + % } else { <INPUT TYPE="hidden" NAME="payinfo" VALUE=""> + </TABLE> % } +<P> +<TABLE class="fsinnerbox"> <& /elements/tr-select-reason.html, 'field' => 'reasonnum', 'reason_class' => 'F', |
