From: ivan Date: Thu, 27 Mar 2008 21:01:24 +0000 (+0000) Subject: mask ACH info in payment history X-Git-Tag: freeside_1_7_3rc1~31 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=ce1e84617d6552be37f592ed9e5d253b9fd2e5af;hp=dfc1212ab722f46017453e8ebfede23f0de07853;p=freeside.git mask ACH info in payment history --- 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; % }