X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=f1add6fcc8d2e78c56e33ffd952b12ec48c0b9c1;hb=fa33561ed20c57b0f63221d6a0f9c0cf5ebbef14;hp=9f1ff8dc9d585f1d158e919ed7d331a11ea108da;hpb=0607b801aac6e9b6e3fa6e463405ed5348feacc4;p=freeside.git diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 9f1ff8dc9..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 %> % } @@ -244,7 +250,7 @@ % if ( $conf->exists('voip-cust_cdr_squelch') ) { - <% mt('Print CDRs') |h %> + <% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %> <% $cust_main->squelch_cdr ? $no : $yes %> % } @@ -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>