From 186a8210b7160604299f5a7286b9cb0749ced611 Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 3 Jun 2011 03:03:47 +0000 Subject: [PATCH] configurable payment date for auto CHEK/CARD, RT10813 --- httemplate/edit/cust_main/billing.html | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 60a03d621..57c0e523b 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -95,6 +95,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); @@ -129,7 +136,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; @@ -190,12 +197,12 @@ % qq!${r}!.emt('Exact name on card').qq! !. % qq!!. % -% qq! !.emt('Charge future payments to this [_1] automatically','credit card').qq!!. +% qq! !.emt('Charge future payments to this [_1] automatically','credit card').qq!!. % % ( $conf->exists('cust_main-select-billday') ? -% qq! -% Charge on the day of each month! +% qq! +% Charge on this day of each month ! % : '' % ). % @@ -235,19 +242,15 @@ % ). % % -% qq! !.emt('Charge future payments to this [_1] automatically','electronic check').qq!!. +% qq! !.emt('Charge future payments to this [_1] automatically','electronic check').qq!!. % % ( $conf->exists('cust_main-select-billday') ? -% qq! -% Charge on the day of each month! +% qq! +% Charge on this day of each month ! % : '' % ). % -% ' '. -% ' '. -% ' '. -% % '', % % 'LECB' => @@ -393,6 +396,7 @@ 'labels' => \%allopt, 'html_between' => '', 'layer_callback' => sub { my $layer = shift; $payby{$layer}; }, + 'onchange' => 'init_payauto_changed();', &> <% &ntable("#cccccc") %> -- 2.11.0