From ce1e84617d6552be37f592ed9e5d253b9fd2e5af Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 27 Mar 2008 21:01:24 +0000 Subject: [PATCH] mask ACH info in payment history --- httemplate/view/cust_main/billing.html | 5 ++--- httemplate/view/cust_main/payment_history.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index f1ceb52c2..c5268d5d3 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -69,8 +69,7 @@ Billing information <% $cust_main->payname %> % } elsif ( $cust_main->payby eq 'CHEK' || $cust_main->payby eq 'DCHK') { -% my( $account, $aba ) = split('@', $cust_main->payinfo ); -% +% my( $account, $aba ) = split('@', $cust_main->paymask ); Electronic check <% $cust_main->payby eq 'CHEK' ? '(automatic)' : '(on-demand)' %> @@ -82,7 +81,7 @@ Billing information Account number - <% 'x'x(length($account)-2). substr($account,(length($account)-2)) %> + <% $account %> Account type diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index b7fa7c22b..703bd91ef 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -90,8 +90,8 @@ % my $payinfo; % if ( $payby eq 'CARD' ) { % $payinfo = $cust_pay->paymask; -% } elsif ( $payby eq 'CHEK' && $cust_pay->payinfo =~ /^(\d+)\@(\d+)$/ ) { -% $payinfo = "ABA $2, Acct# $1"; +% } elsif ( $payby eq 'CHEK' && $cust_pay->paymask =~ /^(\d+)\@(\d+)$/ ) { +% $payinfo = "ABA $2, Acct #$1"; % } else { % $payinfo = $cust_pay->payinfo; % } -- 2.20.1