[freeside-commits] freeside/httemplate/edit/cust_main billing.html, 1.46.2.3, 1.46.2.4 bottomfixup.js, 1.12.2.1, 1.12.2.2

Ivan,,, ivan at wavetail.420.am
Wed Dec 28 15:33:35 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail.420.am:/tmp/cvs-serv593/httemplate/edit/cust_main

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	billing.html bottomfixup.js 
Log Message:
fix bill day selection w/echeck, RT#15763

Index: bottomfixup.js
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/bottomfixup.js,v
retrieving revision 1.12.2.1
retrieving revision 1.12.2.2
diff -u -w -d -r1.12.2.1 -r1.12.2.2
--- bottomfixup.js	12 Aug 2011 21:57:43 -0000	1.12.2.1
+++ bottomfixup.js	28 Dec 2011 23:33:33 -0000	1.12.2.2
@@ -2,7 +2,7 @@
 
 %# ../cust_main.cgi
   var layervars = new Array(
-    'payauto',
+    'payauto', 'billday',
     'payinfo', 'payinfo1', 'payinfo2', 'payinfo3', 'paytype',
     'payname', 'paystate', 'exp_month', 'exp_year', 'paycvv',
     'paystart_month', 'paystart_year', 'payissue',

Index: billing.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/billing.html,v
retrieving revision 1.46.2.3
retrieving revision 1.46.2.4
diff -u -w -d -r1.46.2.3 -r1.46.2.4
--- billing.html	17 Oct 2011 20:56:12 -0000	1.46.2.3
+++ billing.html	28 Dec 2011 23:33:33 -0000	1.46.2.4
@@ -6,7 +6,7 @@
 
   <INPUT TYPE="hidden" NAME="<%$payby%>_payinfo" VALUE="<% $cust_main->paymask %>">
 
-% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate )) { 
+% foreach my $field (qw( payname paycvv paystart_month paystart_year payissue payip paytype paystate billday )) { 
 
     <INPUT TYPE="hidden" NAME="<% $payby.'_'.$field %>" VALUE="<% $cust_main->get($field) %>">
 
@@ -103,9 +103,9 @@
     }
 
     function payauto_changed(payauto_field){
-        var span = (payauto_field.name == 'CARD_payauto') ? 'card_billday' : 'chek_billday';
-        var select = document.getElementById('select_'+span);
-        span = document.getElementById(span);
+        var select = (payauto_field.name == 'CARD_payauto') ? 'CARD_billday' : 'CHEK_billday';
+        var span = document.getElementById('td_'+select);
+        select = document.getElementById(select);
         if (span == null || select == null) return;
         if(payauto_field.checked) {
             span.style.color = '#000000';
@@ -114,7 +114,7 @@
         else {
             span.style.color = '#999999';
             select.disabled = true;
-            select.selectedIndex = 0;
+            //why? select.selectedIndex = 0;
         }
     }
     
@@ -126,7 +126,8 @@
 %  my $paytype = $cust_main->paytype;
 %  my( $account, $aba ) = split('@', $payinfo);
 %  my $branch = '';
-%  ($branch,$aba) = split('\.',$aba) if $conf->exists('cust_main-require-bank-branch');
+%  ($branch,$aba) = split('\.',$aba)
+%    if $conf->exists('cust_main-require-bank-branch');
 %
 %  my $disabled = 'DISABLED style="background-color: #dddddd"';
 %  my $text_disabled = 'style="color: #999999"';
@@ -215,9 +216,9 @@
 %           emt('Charge future payments to this [_1] automatically','credit card').'</TD></TR>'.
 %
 %      ( $conf->exists('cust_main-select-billday') ?
-%        qq!<TR><TD ALIGN="RIGHT" id="card_billday" $card_billday_style>
+%        qq!<TR><TD ALIGN="RIGHT" id="td_CARD_billday" $card_billday_style>
 %                    Charge on this day of each month</TD><TD> &nbsp; 
-%                   <SELECT id="select_card_billday" $card_billday_select_disabled NAME="billday">!
+%                   <SELECT id="CARD_billday" $card_billday_select_disabled NAME="CARD_billday">!
 %                . billday_options($cust_main->billday) . qq!</SELECT> </TD></TR>!
 %        : ''
 %      ).
@@ -267,9 +268,9 @@
 %           emt('Charge future payments to this [_1] automatically','electronic check').'</TD></TR>'.
 %
 %      ( $conf->exists('cust_main-select-billday') ?
-%        qq!<TR><TD ALIGN="RIGHT" id="chek_billday" $chek_billday_style>
+%        qq!<TR><TD ALIGN="RIGHT" id="td_CHEK_billday" $chek_billday_style>
 %                    Charge on this day of each month</TD><TD> &nbsp;
-%                   <SELECT id="select_chek_billday" $chek_billday_select_disabled NAME="billday">!
+%                   <SELECT id="CHEK_billday" $chek_billday_select_disabled NAME="CHEK_billday">!
 %                . billday_options($cust_main->billday) . qq!</SELECT> </TD></TR>!
 %        : ''
 %      ).



More information about the freeside-commits mailing list