From: Christopher Burger Date: Thu, 8 Nov 2018 20:58:16 +0000 (-0500) Subject: RT# 74435 - v3 display clean up to show refund account X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f291087ead0c3fd5447287cf06c786515276d12b;p=freeside.git RT# 74435 - v3 display clean up to show refund account --- diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index c79c39a80..d3ce167f0 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -33,7 +33,7 @@ % $paydate = '' unless ($paydate =~ /^\d{2,4}-\d{1,2}-01$'/); % } -
Payment +
Payment <% ntable("#cccccc", 2) %> @@ -84,7 +84,7 @@ % } #if $cust_pay -
Refund +
Refund <% ntable("#cccccc", 2) %> @@ -94,21 +94,26 @@ Amount - $ by <% FS::payby->payname($payby) %> + $ % if ( $payby eq 'BILL' ) { - Check # - + Check + % } % elsif ($payby eq 'CHEK' || $payby eq 'CARD') { + + Method + <% FS::payby->payname($real_payby) %> # <% $real_paymask %> + + % if ( $conf->exists("batch-enable") -% || grep $payby eq $_, $conf->config('batch-enable_payby') +% || grep $real_payby eq $_, $conf->config('batch-enable_payby') % ) { -% if ( grep $payby eq $_, $conf->config('realtime-disable_payby') ) { +% if ( grep $real_payby eq $_, $conf->config('realtime-disable_payby') ) { % } else { @@ -175,6 +180,12 @@ 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 $real_payby = $cust_main->payby; +my $real_paymask = $cust_main->paymask; + my $_date = time; my $p1 = popurl(1);