From 367f9b85f24646672fcec4bcd2ba26277848908f Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 3 Jun 2011 18:18:19 +0000 Subject: per-customer configurable payment date for auto CHEK/CARD, RT10813 --- httemplate/edit/cust_main/billing.html | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 296e91498..b5654f046 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -107,7 +107,7 @@ 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 = 'inline'; + if(payauto_field.checked) f.style.display = ''; else f.style.display = 'none'; } @@ -145,8 +145,9 @@ % } % $ret; % } -% my $billday_card_display = $payby eq 'CARD' ? 'inline' : 'none'; -% my $billday_chek_display = $payby eq 'CHEK' ? 'inline' : 'none'; +% +% my $card_billday_style = $payby eq 'CARD' ? '' : 'style="display: none"'; +% my $chek_billday_style = $payby eq 'CHEK' ? '' : 'style="display: none"'; % % my %payby = ( % @@ -199,16 +200,18 @@ % qq!${r}Exact name on card !. % qq!!. % -% qq! Charge future payments to this card automatically!. +% qq!!. +% qq! !. +% qq!Charge future payments to this card automatically!. % % ( $conf->exists('cust_main-select-billday') ? -% qq! -% Charge on this day of each month ! +% qq!
+% Charge on this day of each month
! % : '' % ). % -% '', +% '', % % 'CHEK' => % @@ -244,16 +247,18 @@ % ). % % -% qq! Charge future payments to this electronic check automatically!. +% qq!!. +% qq! !. +% qq!Charge future payments to this electronic check automatically!. % % ( $conf->exists('cust_main-select-billday') ? -% qq! +% qq!
% Charge on this day of each month ! +% . billday_options($cust_main->billday) . qq!
! % : '' % ). % -% '', +% '', % % 'LECB' => % -- cgit v1.2.1