From 074464a707b2c8b83cc50cd0bb067660ef4d0f9f Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 14 Jan 2012 07:05:18 +0000 Subject: improve echeck validation for canada, deprecate echeck-nonus and cust_main-require-bank-branch config in favor of echeck-country, RT#15982 --- httemplate/view/cust_main/billing.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 6e36e99e8..f1add6fcc 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -85,7 +85,7 @@ % } elsif ( $cust_main->payby eq 'CHEK' || $cust_main->payby eq 'DCHK') { % my( $account, $aba ) = split('@', $cust_main->paymask ); % my $branch = ''; -% ($branch,$aba) = split('\.',$aba) if $conf->exists('cust_main-require-bank-branch'); +% ($branch,$aba) = split('\.',$aba) if $conf->config('echeck-country') eq 'CA'; % my $autodemand = $cust_main->payby eq 'CHEK' ? 'automatic' : 'on-demand'; @@ -93,12 +93,17 @@ +% #false laziness w/edit/cust_main/billing.html and misc/payment.cgi +% my $routing_label = $conf->config('echeck-country') eq 'US' +% ? 'ABA/Routing number' +% : 'Routing number'; + - <% mt('ABA/Routing code') |h %> + <% mt($routing_label) |h %> <% $aba %> -% if ( $conf->exists('cust_main-require-bank-branch') ) { +% if ( $conf->config('echeck-country') eq 'CA' ) { <% mt('Branch number') |h %> <% $branch %> -- cgit v1.2.1