X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=24988eae4356b3e6d25a2a8a2842f227df9a16a6;hb=e6f70733037e9295be95cd27791356ba94177968;hp=fa9c166972aa0fb5e35882f13af7049f934c60ba;hpb=c4b71bc4459cb7d403cbebede470aeb2c6292a6e;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index fa9c16697..24988eae4 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -507,11 +507,17 @@ sub translate_payinfo { my $payby = $object->payby; my $payinfo = $object->payinfo; + my $conf = new FS::Conf; + if ( $payby eq 'CARD' ) { $payinfo = $object->paymask; } elsif ( $payby eq 'CHEK' ) { my( $account, $aba ) = split('@', $object->paymask ); - $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); + if ( $conf->exists('echeck-no_routing') ) { + $payinfo = emt("Acct #[_1]", $account); + } else { + $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); + } } ($payby,$payinfo);