From 26837baa9bf934c7acde425ade20b84e4fe8196a Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 21 Oct 2011 16:30:03 +0000 Subject: add bank branch to one-time payments, RT#14859 --- httemplate/misc/payment.cgi | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'httemplate/misc/payment.cgi') diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 1797b29ba..b2baebd07 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -131,13 +131,15 @@ % } elsif ( $payby eq 'CHEK' ) { % -% my( $payinfo1, $payinfo2, $payname, $ss, $paytype, $paystate, +% my( $account, $aba, $branch, $payname, $ss, $paytype, $paystate, % $stateid, $stateid_state ) -% = ( '', '', '', '', '', '', '', '' ); +% = ( '', '', '', '', '', '', '', '', '' ); % if ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) { -% $cust_main->paymask =~ /^([\dx]+)\@([\dx]*)$/i +% $cust_main->paymask =~ /^([\dx]+)\@([\d\.x]*)$/i % or die "unparsable payinfo ". $cust_main->payinfo; -% ($payinfo1, $payinfo2) = ($1, $2); +% ($account, $aba) = ($1, $2); +% ($branch,$aba) = split('\.',$aba) +% if $conf->exists('cust_main-require-bank-branch'); % $payname = $cust_main->payname; % $ss = $cust_main->ss; % $paytype = $cust_main->getfield('paytype'); @@ -150,17 +152,25 @@ <% mt('Account number') |h %> - + <% mt('Type') |h %> <% mt('ABA/Routing number') |h %> - + (<% mt('help') |h %>) +% if ( $conf->exists('cust_main-require-bank-branch') ) { + + <% mt('Branch number') |h %> + + + + +% } <% mt('Bank name') |h %> -- cgit v1.2.1