From 23ceb08c948d848556555840ffde296caebd6df6 Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 3 Jun 2011 18:10:45 +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(-) (limited to 'httemplate/edit/cust_main') diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 57c0e523b..d6995af05 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -106,10 +106,10 @@ 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'; } - + <& /elements/init_overlib.html &> @@ -144,8 +144,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 = ( % @@ -197,16 +198,18 @@ % qq!${r}!.emt('Exact name on card').qq! !. % qq!!. % -% qq! !.emt('Charge future payments to this [_1] automatically','credit card').qq!!. +% qq!!. +% qq! !. +% 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!
! % : '' % ). % -% '', +% '', % % 'CHEK' => % @@ -242,16 +245,18 @@ % ). % % -% qq! !.emt('Charge future payments to this [_1] automatically','electronic check').qq!!. +% qq!!. +% qq! !. +% 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!
! % : '' % ). % -% '', +% '', % % 'LECB' => % -- cgit v1.2.1