summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorlevinse <levinse>2011-06-23 04:12:30 +0000
committerlevinse <levinse>2011-06-23 04:12:30 +0000
commit0607b801aac6e9b6e3fa6e463405ed5348feacc4 (patch)
tree602291fa9ef51289f993065e8106b2472111a8f6 /httemplate
parenta0dd6f2c04a3f22aa741d1d639f8985a81c6e81b (diff)
echeck: add optional bank branch format, RT13360
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/cust_main/billing.html2
-rw-r--r--httemplate/view/cust_main/billing.html13
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!<INPUT TYPE="hidden" NAME="CHEK_exp_year" VALUE="2037">!.
%
% ( $conf->exists('cust_main-require-bank-branch') ?
-% qq!<TR><TD ALIGN="right">$r Branch number</TD><TD COLSPAN="3">
+% qq!<TR><TD ALIGN="right">$r !.emt('Branch number').qq!</TD><TD COLSPAN="3">
% <INPUT TYPE="text" name="CHEK_payinfo3" VALUE=$branch></TD></TR>! : '' ).
%
% qq!<TR><TD ALIGN="right" WIDTH="200">${r}!.emt('Bank name').qq! </TD>!.
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 @@
</TR>
% } 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 @@
<TD ALIGN="right"><% mt('ABA/Routing code') |h %></TD>
<TD BGCOLOR="#ffffff"><% $aba %></TD>
</TR>
+
+% if ( $conf->exists('cust_main-require-bank-branch') ) {
+<TR>
+ <TD ALIGN="right"><% mt('Branch number') |h %></TD>
+ <TD BGCOLOR="#ffffff"><% $branch %></TD>
<TR>
+% }
+
<TD ALIGN="right"><% mt('Account number') |h %></TD>
<TD BGCOLOR="#ffffff"><% $account %></TD>
</TR>
<TR>
- <TD ALIGN="right"<% mt('>Account type') |h %></TD>
+ <TD ALIGN="right"><% mt('Account type') |h %></TD>
<TD BGCOLOR="#ffffff"><% $cust_main->paytype %></TD>
</TR>
<TR>
- <TD ALIGN="right"<% mt('>Bank name') |h %></TD>
+ <TD ALIGN="right"><% mt('Bank name') |h %></TD>
<TD BGCOLOR="#ffffff"><% $cust_main->payname %></TD>
</TR>
% if ( $conf->exists('show_bankstate') ) {