summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-03-27 21:01:24 +0000
committerivan <ivan>2008-03-27 21:01:24 +0000
commitce1e84617d6552be37f592ed9e5d253b9fd2e5af (patch)
tree5fa71278307a0ad22fe70b6bf17fbdd092a153a4
parentdfc1212ab722f46017453e8ebfede23f0de07853 (diff)
mask ACH info in payment history
-rw-r--r--httemplate/view/cust_main/billing.html5
-rw-r--r--httemplate/view/cust_main/payment_history.html4
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
<TD BGCOLOR="#ffffff"><% $cust_main->payname %></TD>
</TR>
% } 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&nbsp;check&nbsp;<% $cust_main->payby eq 'CHEK' ? '(automatic)' : '(on-demand)' %>
@@ -82,7 +81,7 @@ Billing information
</TR>
<TR>
<TD ALIGN="right">Account number</TD>
- <TD BGCOLOR="#ffffff"><% 'x'x(length($account)-2). substr($account,(length($account)-2)) %></TD>
+ <TD BGCOLOR="#ffffff"><% $account %></TD>
</TR>
<TR>
<TD ALIGN="right">Account type</TD>
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;
% }