[freeside-commits] freeside/httemplate/search cust_main.html, 1.15, 1.15.2.1 report_cust_main.html, 1.10, 1.10.2.1

Ivan,,, ivan at wavetail.420.am
Thu Nov 5 16:25:24 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv23926/httemplate/search

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_main.html report_cust_main.html 
Log Message:
add "payment expiration before" to customer report, RT#6447

Index: report_cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_main.html,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- report_cust_main.html	29 Jun 2009 13:53:25 -0000	1.10
+++ report_cust_main.html	6 Nov 2009 00:25:22 -0000	1.10.2.1
@@ -39,11 +39,42 @@
 %   }
 
     <% include( '/elements/tr-select-payby.html',
-                  'payby_type' => 'cust',
-                  'multiple'   => 1,
-                  'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
+                  'payby_type'   => 'cust',
+                  'multiple'     => 1,
+                  'all_selected' => 1,
               )
     %>
+
+    <TR>
+      <TD ALIGN="right">Payment expiration before</TD>
+      <TD>
+        <SELECT NAME="paydate_month" DISABLED>
+%         foreach my $month ( 1 .. 12 ) {
+            <OPTION VALUE="<% $month %>"><% $month %></OPTION>
+%         }
+        </SELECT>
+        /
+        <SELECT NAME="paydate_year" onChange="paydate_year_changed(this);">
+          <OPTION VALUE=""></OPTION>
+%         my $lastyear = (localtime(time))[5] + 1899;
+%         foreach my $year ( $lastyear .. $lastyear+12 ) {
+            <OPTION VALUE="<% $year %>"><% $year %></OPTION>
+%         }
+        </SELECT>
+      </TD>
+    </TR>
+
+    <SCRIPT TYPE="text/javascript">
+      function paydate_year_changed(what) {
+        var value = what.options[what.selectedIndex].value;
+        var month_select = what.form.paydate_month;
+        if ( value == '' ) {
+          month_select.disabled = true;
+        } else {
+          month_select.disabled = false;
+        }
+      }
+    </SCRIPT>
     
     <% include( '/elements/tr-input-lessthan_greaterthan.html',
                   label   => 'Current balance',

Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- cust_main.html	29 Jun 2009 13:53:25 -0000	1.15
+++ cust_main.html	6 Nov 2009 00:25:21 -0000	1.15.2.1
@@ -45,7 +45,7 @@
 #scalars
 my @scalars = qw (
   agentnum status cancelled_pkgs cust_fields flattened_pkgs custbatch
-  no_censustract
+  no_censustract paydate_year paydate_month
 );
 
 for my $param ( @scalars ) {



More information about the freeside-commits mailing list