X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=fd078c5daa4491bfc56a7f52bb24c664471c6a63;hb=40f436877b2334fc2d4fd34c50d54807ae8777af;hp=a1927fa6e0dbf04acc5ff064c951dd9ee7f6f65c;hpb=fdc247b504359ca9e74f63daa771f49393fd70ed;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index a1927fa6e..fd078c5da 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -6,7 +6,7 @@ -% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate )) { +% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate billday )) { @@ -103,9 +103,9 @@ } function payauto_changed(payauto_field){ - var span = (payauto_field.name == 'CARD_payauto') ? 'card_billday' : 'chek_billday'; - var select = document.getElementById('select_'+span); - span = document.getElementById(span); + var select = (payauto_field.name == 'CARD_payauto') ? 'CARD_billday' : 'CHEK_billday'; + var span = document.getElementById('td_'+select); + select = document.getElementById(select); if (span == null || select == null) return; if(payauto_field.checked) { span.style.color = '#000000'; @@ -114,7 +114,7 @@ else { span.style.color = '#999999'; select.disabled = true; - select.selectedIndex = 0; + //why? select.selectedIndex = 0; } } @@ -125,6 +125,9 @@ % 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"'; @@ -213,9 +216,9 @@ % emt('Charge future payments to this [_1] automatically','credit card').''. % % ( $conf->exists('cust_main-select-billday') ? -% qq! +% qq! % Charge on this day of each month   -% ! % . billday_options($cust_main->billday) . qq! ! % : '' % ). @@ -240,6 +243,10 @@ % 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') ? @@ -261,9 +268,9 @@ % emt('Charge future payments to this [_1] automatically','electronic check').''. % % ( $conf->exists('cust_main-select-billday') ? -% qq! +% qq! % Charge on this day of each month   -% ! % . billday_options($cust_main->billday) . qq! ! % : '' % ). @@ -503,7 +510,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 { @@ -544,11 +551,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');