X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=294104b09269e77d2fbd7268b1afc01c98fbb985;hb=62b12e8b09608b7081ffd596be899fafb5c2403f;hp=d6995af05802e312684838e267c9b6c3fb56afba;hpb=23ceb08c948d848556555840ffde296caebd6df6;p=freeside.git
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index d6995af05..294104b09 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -103,11 +103,19 @@
}
function payauto_changed(payauto_field){
- var f = (payauto_field.name == 'CARD_payauto') ? 'card_billday' : 'chek_billday';
- f = document.getElementById(f);
- if ( f == null) return;
- if(payauto_field.checked) f.style.display = '';
- else f.style.display = 'none';
+ var span = (payauto_field.name == 'CARD_payauto') ? 'card_billday' : 'chek_billday';
+ var select = document.getElementById('select_'+span);
+ span = document.getElementById(span);
+ if (span == null || select == null) return;
+ if(payauto_field.checked) {
+ span.style.color = '#000000';
+ select.disabled = false;
+ }
+ else {
+ span.style.color = '#999999';
+ select.disabled = true;
+ select.selectedIndex = 0;
+ }
}
@@ -117,6 +125,8 @@
% my $payby = $cust_main->payby;
% my $paytype = $cust_main->paytype;
% my( $account, $aba ) = split('@', $payinfo);
+% my $branch = '';
+% ($branch,$aba) = split('\.',$aba) if $conf->exists('cust_main-require-bank-branch');
%
% my $disabled = 'DISABLED style="background-color: #dddddd"';
% my $text_disabled = 'style="color: #999999"';
@@ -145,8 +155,10 @@
% $ret;
% }
%
-% my $card_billday_style = $payby eq 'CARD' ? '' : 'style="display: none"';
-% my $chek_billday_style = $payby eq 'CHEK' ? '' : 'style="display: none"';
+% my $card_billday_style = $payby eq 'CARD' ? '' : 'style="color: #999999"';
+% my $chek_billday_style = $payby eq 'CHEK' ? '' : 'style="color: #999999"';
+% my $card_billday_select_disabled = $payby eq 'CARD' ? '' : 'DISABLED';
+% my $chek_billday_select_disabled = $payby eq 'CHEK' ? '' : 'DISABLED';
%
% my %payby = (
%
@@ -200,16 +212,17 @@
%
% qq!
!.
% qq! !.
-% emt('Charge future payments to this [_1] automatically','credit card').
+% emt('Charge future payments to this [_1] automatically','credit card').' |
'.
%
% ( $conf->exists('cust_main-select-billday') ?
-% qq!
-% Charge on this day of each month
!
+% qq!
+% Charge on this day of each month |
+% |
!
% : ''
% ).
%
-% '',
+% '',
%
% 'CHEK' =>
%
@@ -221,14 +234,23 @@
% join('', map { qq!" } @FS::cust_main::paytypes).
% qq!!.
%
-% qq!${r}!.emt('ABA/Routing number').qq! | !.
-% qq! !.
-% qq!(!.emt('help').qq!)!.
-% qq! |
!.
+% ( $conf->exists('echeck-no_routing')
+% ? ''
+% :
+% qq!${r}!.emt('ABA/Routing number').qq! | !.
+% qq! !.
+% qq!(!.emt('help').qq!)!.
+% qq! |
!
+% ).
%
% qq!!.
% qq!!.
%
+% ( $conf->exists('cust_main-require-bank-branch') ?
+% qq!$r !.emt('Branch number').qq! |
+% |
! : '' ).
+%
% qq!${r}!.emt('Bank name').qq! | !.
% qq! |
!.
% ( $conf->exists('show_bankstate') ?
@@ -247,16 +269,17 @@
%
% qq!!.
% qq! !.
-% emt('Charge future payments to this [_1] automatically','electronic check').
+% emt('Charge future payments to this [_1] automatically','electronic check').' |
'.
%
% ( $conf->exists('cust_main-select-billday') ?
-% qq!
-% Charge on this day of each month
!
+% qq!
+% Charge on this day of each month |
+% |
!
% : ''
% ).
%
-% '',
+% '',
%
% 'LECB' =>
%
@@ -491,7 +514,7 @@ function toggle(obj) {
% if ( $conf->exists('voip-cust_cdr_squelch') ) {
- squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Omit CDRs from printed invoices') |h %> |
+ squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from invoices') |h %> |
% } else {
@@ -532,11 +555,33 @@ function toggle(obj) {
% }
+%my @available_locales = $conf->config('available-locales');
+%if ( scalar(@available_locales) ) {
+% push @available_locales, '';
+% my %locale_labels = map {
+% my %ll;
+% my %info = FS::Locales->locale_info($_);
+% $ll{$_} = $info{name} . " (" . $info{country} . ")";
+% %ll;
+% } FS::Locales->locales;
+ <& /elements/tr-select.html,
+ 'label' => emt('Invoicing locale'),
+ 'field' => 'locale',
+ 'options' => \@available_locales,
+ 'labels' => \%locale_labels,
+ 'curr_value' => $cust_main->locale,
+ &>
+% }
+
<% $r %> <% mt('required fields') |h %>
% }
+
+
<%once>
my $paystate_label = FS::Msgcat::_gettext('paystate');