From 0607b801aac6e9b6e3fa6e463405ed5348feacc4 Mon Sep 17 00:00:00 2001 From: levinse Date: Thu, 23 Jun 2011 04:12:30 +0000 Subject: [PATCH] echeck: add optional bank branch format, RT13360 --- httemplate/edit/cust_main/billing.html | 2 +- httemplate/view/cust_main/billing.html | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 8a90204dd..3ac063509 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -243,7 +243,7 @@ % qq!!. % % ( $conf->exists('cust_main-require-bank-branch') ? -% qq!$r Branch number +% qq!$r !.emt('Branch number').qq! % ! : '' ). % % qq!${r}!.emt('Bank name').qq! !. diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 3d8adf985..9f1ff8dc9 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -84,6 +84,8 @@ % } 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'); % my $autodemand = $cust_main->payby eq 'CHEK' ? 'automatic' : 'on-demand'; @@ -94,16 +96,23 @@ <% mt('ABA/Routing code') |h %> <% $aba %> + +% if ( $conf->exists('cust_main-require-bank-branch') ) { + + <% mt('Branch number') |h %> + <% $branch %> +% } + <% mt('Account number') |h %> <% $account %> - Account type') |h %> + <% mt('Account type') |h %> <% $cust_main->paytype %> - Bank name') |h %> + <% mt('Bank name') |h %> <% $cust_main->payname %> % if ( $conf->exists('show_bankstate') ) { -- 2.11.0