X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=f1add6fcc8d2e78c56e33ffd952b12ec48c0b9c1;hb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;hp=ba63833f4c8ae14aa1526cbb179814d4fdaa05d2;hpb=f13d4c6396201bdf26a4086c708523a0db313acc;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index ba63833f4..f1add6fcc 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -85,19 +85,25 @@ % } 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'; <% mt("Electronic check ([_1])",$autodemand) |h %> + +% #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 %> @@ -140,7 +146,7 @@ % if ( $cust_main->payinfo ) { - P.O.') |h %> + <% $cust_main->payinfo %> % } @@ -270,6 +276,15 @@ % } +% if ( $cust_main->locale ) { +% my %locale_info = FS::Locales->locale_info($cust_main->locale); + + <% mt('Invoicing locale') |h %> + <% $locale_info{name} . " (" . $locale_info{country} .")" %> + +% } + + <%once>