X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=5e97934c1b801a925da0138baac72ce9feecf328;hb=35965be444639d6d0a99e64c9cbdbb521dfed0ab;hp=b5654f04683ee03876c5db4c36cf24c341076258;hpb=367f9b85f24646672fcec4bcd2ba26277848908f;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index b5654f046..5e97934c1 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -104,11 +104,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; + } } @@ -118,6 +126,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"'; @@ -146,8 +156,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 = ( % @@ -156,7 +168,7 @@ % ''. % % qq!!. -% qq!!. +% qq!!. % % qq!!. % '!. % % qq!!. % % ( $conf->exists('cust_main-select-billday') ? -% qq!
-% Charge on this day of each month
! +% qq!! % : '' % ). % -% '
${r}Card number
${r}Expiration '. @@ -201,17 +213,18 @@ % qq!
!. -% qq! !. -% qq!Charge future payments to this card automatically!. +% qq! !. +% qq!Charge future payments to this card automatically
+% Charge on this day of each month   +%
', +% '', % % 'CHEK' => % @@ -231,6 +244,10 @@ % qq!!. % qq!!. % +% ( $conf->exists('cust_main-require-bank-branch') ? +% qq!$r Branch number +% ! : '' ). +% % qq!${r}Bank name !. % qq!!. % ( $conf->exists('show_bankstate') ? @@ -249,16 +266,17 @@ % % qq!!. % qq! !. -% qq!Charge future payments to this electronic check automatically!. +% qq!Charge future payments to this electronic check automatically!. % % ( $conf->exists('cust_main-select-billday') ? -% qq!
-% Charge on this day of each month
! +% qq! +% Charge on this day of each month   +% ! % : '' % ). % -% '', +% '', % % 'LECB' => % @@ -527,6 +545,10 @@ function toggle(obj) { <% $r %> required fields % } + + <%once> my $paystate_label = FS::Msgcat::_gettext('paystate');