[freeside-commits] freeside/httemplate/edit/cust_main billing.html, 1.40, 1.41
Erik Levinson
levinse at wavetail.420.am
Fri Jun 3 11:10:47 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail.420.am:/tmp/cvs-serv24215/httemplate/edit/cust_main
Modified Files:
billing.html
Log Message:
per-customer configurable payment date for auto CHEK/CARD, RT10813
Index: billing.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/billing.html,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -w -d -r1.40 -r1.41
--- billing.html 3 Jun 2011 03:03:47 -0000 1.40
+++ billing.html 3 Jun 2011 18:10:45 -0000 1.41
@@ -106,7 +106,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';
}
@@ -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!<TR><TD ALIGN="right" WIDTH="200">${r}!.emt('Exact name on card').qq! </TD>!.
% qq!<TD WIDTH="408"><INPUT TYPE="text" NAME="CARD_payname" VALUE="!. ( $payby =~ /^(CARD|DCRD)$/ ? $cust_main->payname : '' ). qq!"></TD></TR>!.
%
-% qq!<TR><TD COLSPAN=2 WIDTH="608"><INPUT TYPE="checkbox" onchange="payauto_changed(this);" ID="CARD_payauto" NAME="CARD_payauto" $CARD_payauto_checked> !.emt('Charge future payments to this [_1] automatically','credit card').qq!</TD></TR>!.
+% qq!<TR><TD COLSPAN=2 WIDTH="608">!.
+% qq!<INPUT TYPE="checkbox" onchange="payauto_changed(this);" ID="CARD_payauto" NAME="CARD_payauto" $CARD_payauto_checked> !.
+% emt('Charge future payments to this [_1] automatically','credit card').
%
% ( $conf->exists('cust_main-select-billday') ?
-% qq!<TR><TD COLSPAN="2" id="card_billday" style="display: $billday_card_display">
+% qq!<BR><DIV id="card_billday" $card_billday_style>
% Charge on this day of each month <SELECT NAME="billday">!
-% . billday_options($cust_main->billday) . qq!</SELECT> </TD></TR>!
+% . billday_options($cust_main->billday) . qq!</SELECT> </DIV>!
% : ''
% ).
%
-% '</TABLE>',
+% '</TD></TR></TABLE>',
%
% 'CHEK' =>
%
@@ -242,16 +245,18 @@
% ).
%
%
-% qq!<TR><TD COLSPAN=4 WIDTH="608"><INPUT TYPE="checkbox" onchange="payauto_changed(this);" ID="CHEK_payauto" NAME="CHEK_payauto" $CHEK_payauto_checked> !.emt('Charge future payments to this [_1] automatically','electronic check').qq!</TD></TR>!.
+% qq!<TR><TD COLSPAN=4 WIDTH="608">!.
+% qq!<INPUT TYPE="checkbox" onchange="payauto_changed(this);" ID="CHEK_payauto" NAME="CHEK_payauto" $CHEK_payauto_checked> !.
+% emt('Charge future payments to this [_1] automatically','electronic check').
%
% ( $conf->exists('cust_main-select-billday') ?
-% qq!<TR><TD COLSPAN="4" id="chek_billday" style="display: $billday_chek_display">
+% qq!<DIV id="chek_billday" $chek_billday_style>
% Charge on this day of each month <SELECT NAME="billday">!
-% . billday_options($cust_main->billday) . qq!</SELECT> </TD></TR>!
+% . billday_options($cust_main->billday) . qq!</SELECT> </DIV>!
% : ''
% ).
%
-% '</TABLE>',
+% '</TD></TR></TABLE>',
%
% 'LECB' =>
%
More information about the freeside-commits
mailing list