From 7339abbba021908dbfcf1c220e50a2a6d31624d7 Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 3 Jun 2011 03:15:08 +0000 Subject: [PATCH] configurable payment date for auto CHEK/CARD, RT10813 --- httemplate/edit/cust_main/billing.html | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index f2fa37f6e..296e91498 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -96,6 +96,13 @@ return true; } + function init_payauto_changed(){ + var f = document.getElementById('CARD_payauto'); + if(f != null) payauto_changed(f); + f = document.getElementById('CHEK_payauto'); + if(f != null) payauto_changed(f); + } + function payauto_changed(payauto_field){ var f = (payauto_field.name == 'CARD_payauto') ? 'card_billday' : 'chek_billday'; f = document.getElementById(f); @@ -130,7 +137,7 @@ % % sub billday_options { % my $curr_value = shift; -% my $ret = ''; +% my $ret = ''; % for my $billday ( 1 .. 28 ) { % my $sel = ''; % $sel = "SELECTED='SELECTED'" if $curr_value == $billday; @@ -148,7 +155,7 @@ % ''. % % qq!!. -% qq!!. +% qq!!. % % qq!!. % '! +% Charge on this day of each month ! % : '' % ). % @@ -237,19 +244,15 @@ % ). % % -% qq!!. +% qq!!. % % ( $conf->exists('cust_main-select-billday') ? % qq!! +% Charge on this day of each month ! % : '' % ). % -% ''. -% ''. -% ''. -% % '
${r}Card number
${r}Expiration '. @@ -196,8 +203,8 @@ % % ( $conf->exists('cust_main-select-billday') ? % qq!
-% Charge on the day of each month
Charge future payments to this electronic check automatically
Charge future payments to this electronic check automatically
-% Charge on the day of each month
 
 
 
', % % 'LECB' => @@ -395,6 +398,7 @@ 'labels' => \%allopt, 'html_between' => '', 'layer_callback' => sub { my $layer = shift; $payby{$layer}; }, + 'onchange' => 'init_payauto_changed();', ) %> -- 2.11.0