From 639e88d37ab33deeea4db7c8d1f15e8967f1826f Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 18 May 2017 11:58:26 -0400 Subject: RT# 74435 - Adding option to allow refunds using electronic check batch with RBC format. Conflicts: FS/FS/Schema.pm FS/FS/cust_main/Billing_Batch.pm httemplate/view/cust_main/menu.html --- httemplate/edit/cust_refund.cgi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'httemplate/edit/cust_refund.cgi') diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 32da4543e..e1975ed70 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -102,7 +102,28 @@ Check # +% } +% elsif ($payby eq 'CHEK') { +% +% my @cust_payby = (); +% if ( $payby eq 'CARD' ) { +% @cust_payby = $cust_main->cust_payby('CARD','DCRD'); +% } elsif ( $payby eq 'CHEK' ) { +% @cust_payby = $cust_main->cust_payby('CHEK','DCHK'); % } else { +% die "unknown payby $payby"; +% } +% +% my $custpaybynum = length(scalar($cgi->param('custpaybynum'))) +% ? scalar($cgi->param('custpaybynum')) +% : scalar(@cust_payby) && $cust_payby[0]->custpaybynum; +<& /elements/tr-select-cust_payby.html, + 'cust_payby' => \@cust_payby, + 'curr_value' => $custpaybynum, + 'onchange' => 'cust_payby_changed(this)', +&> + +% } else { % } @@ -157,6 +178,9 @@ if ( $cgi->param('paynum') =~ /^(\d+)$/ ) { } die "no custnum or paynum specified!" unless $custnum; +my $cust_main = qsearchs( 'cust_main', { 'custnum'=>$custnum } ); +die "unknown custnum $custnum" unless $cust_main; + my $_date = time; my $p1 = popurl(1); -- cgit v1.2.1