summaryrefslogtreecommitdiff
path: root/FS/FS/payinfo_Mixin.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-08-06 00:50:48 +0000
committerivan <ivan>2011-08-06 00:50:48 +0000
commit4e764e5f9a7b690baf95906c4455311c2560120f (patch)
tree7f9b8c5bbc4bcec634184253230bdf7d8eccdde9 /FS/FS/payinfo_Mixin.pm
parent0d2c8c61b8c5644c7dedcffcb28210f9a0cec55d (diff)
echeck options to hide routing number and add account owner name, RT#13885
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r--FS/FS/payinfo_Mixin.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index 84264c9..d03391f 100644
--- a/FS/FS/payinfo_Mixin.pm
+++ b/FS/FS/payinfo_Mixin.pm
@@ -165,7 +165,8 @@ sub mask_payinfo {
# Checks (Show last 2 @ bank)
my( $account, $aba ) = split('@', $payinfo );
return 'x'x(length($account)-2).
- substr($account,(length($account)-2))."@".$aba;
+ substr($account,(length($account)-2)).
+ ( length($aba) ? "@".$aba : '');
} else { # Tie up loose ends
return $payinfo;