From 17470f0458a1cf5cf3ef7ebbcbbda836d37a7ee1 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 17 Oct 2011 20:56:14 +0000 Subject: remove echeck-no_routing, never should have been there in the first place --- httemplate/edit/cust_main/billing.html | 13 ++++--------- httemplate/misc/payment.cgi | 18 +++++++----------- httemplate/misc/process/payment.cgi | 9 ++------- httemplate/view/cust_main/billing.html | 10 ++++------ httemplate/view/cust_main/payment_history.html | 6 +----- 5 files changed, 18 insertions(+), 38 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 294104b09..7f7a23284 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -234,15 +234,10 @@ % join('', map { qq!" } @FS::cust_main::paytypes). % qq!!. % -% ( $conf->exists('echeck-no_routing') -% ? '' -% : -% qq!${r}!.emt('ABA/Routing number').qq! !. -% qq! !. -% qq!(!.emt('help').qq!)!. -% qq!! -% ). +% qq!${r}!.emt('ABA/Routing number').qq! !. +% qq! !. +% qq!(!.emt('help').qq!)!. +% qq!!. % % qq!!. % qq!!. diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 447cfa3c1..1797b29ba 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -154,17 +154,13 @@ <% mt('Type') |h %> -% if ( $conf->exists('echeck-no_routing') ) { - -% } else { - - <% mt('ABA/Routing number') |h %> - - - (<% mt('help') |h %>) - - -% } + + <% mt('ABA/Routing number') |h %> + + + (<% mt('help') |h %>) + + <% mt('Bank name') |h %> diff --git a/httemplate/misc/process/payment.cgi b/httemplate/misc/process/payment.cgi index acf066be9..e09cb570c 100644 --- a/httemplate/misc/process/payment.cgi +++ b/httemplate/misc/process/payment.cgi @@ -83,13 +83,8 @@ if ( $payby eq 'CHEK' ) { $cgi->param('payinfo1') =~ /^(\d+)$/ or errorpage("illegal account number ". $cgi->param('payinfo1')); my $payinfo1 = $1; - if ( $conf->exists('echeck-no_routing') ) { - $cgi->param('payinfo2') =~ /^(\d*)$/ - or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2')); - } else { - $cgi->param('payinfo2') =~ /^(\d+)$/ - or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2')); - } + $cgi->param('payinfo2') =~ /^(\d+)$/ + or errorpage("illegal ABA/routing number ". $cgi->param('payinfo2')); my $payinfo2 = $1; $payinfo = $payinfo1. '@'. $payinfo2; } diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 09c0b4d1d..1e7adf000 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -93,12 +93,10 @@ -% unless ( $conf->exists('echeck-no_routing') ) { - - <% mt('ABA/Routing code') |h %> - <% $aba %> - -% } + + <% 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 24988eae4..64a708976 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -513,11 +513,7 @@ sub translate_payinfo { $payinfo = $object->paymask; } elsif ( $payby eq 'CHEK' ) { my( $account, $aba ) = split('@', $object->paymask ); - if ( $conf->exists('echeck-no_routing') ) { - $payinfo = emt("Acct #[_1]", $account); - } else { - $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); - } + $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); } ($payby,$payinfo); -- cgit v1.2.1