diff options
author | ivan <ivan> | 2012-01-14 07:05:18 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-01-14 07:05:18 +0000 |
commit | 074464a707b2c8b83cc50cd0bb067660ef4d0f9f (patch) | |
tree | 0ad8867e31ae73ea793a29ca4589b6ba0fbb86dd /httemplate/view | |
parent | a6446097691aa2e1b393cd1f099f304316a82689 (diff) |
improve echeck validation for canada, deprecate echeck-nonus and cust_main-require-bank-branch config in favor of echeck-country, RT#15982
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/billing.html | 11 |
1 files changed, 8 insertions, 3 deletions
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 @@ </TD> </TR> +% #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'; + <TR> - <TD ALIGN="right"><% mt('ABA/Routing code') |h %></TD> + <TD ALIGN="right"><% mt($routing_label) |h %></TD> <TD BGCOLOR="#ffffff"><% $aba %></TD> </TR> -% if ( $conf->exists('cust_main-require-bank-branch') ) { +% if ( $conf->config('echeck-country') eq 'CA' ) { <TR> <TD ALIGN="right"><% mt('Branch number') |h %></TD> <TD BGCOLOR="#ffffff"><% $branch %></TD> |