From 3d62ec9362d0b22c17a17da6197f8b2fc219a54e Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 6 Aug 2011 00:50:59 +0000 Subject: echeck options to hide routing number and add account owner name, RT#13885 --- httemplate/view/cust_main/billing.html | 11 +++++++---- httemplate/view/cust_main/payment_history.html | 6 +++++- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index ba63833f4..cf22ff701 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -92,10 +92,13 @@ <% mt("Electronic check ([_1])",$autodemand) |h %> - - <% mt('ABA/Routing code') |h %> - <% $aba %> - + +% unless ( $conf->exists('echeck-no_routing') ) { + + <% mt('ABA/Routing code') |h %> + <% $aba %> + +% } % if ( $conf->exists('cust_main-require-bank-branch') ) { diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index fa9c16697..580a30751 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -511,7 +511,11 @@ sub translate_payinfo { $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); -- cgit v1.2.1