[freeside-commits] freeside/httemplate/search cust_main.html, 1.8, 1.9 report_cust_main.html, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Sat Mar 1 14:23:43 PST 2008


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

Modified Files:
	cust_main.html report_cust_main.html 
Log Message:
add payby selection to adv. customer search

Index: report_cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_main.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- report_cust_main.html	19 Dec 2007 21:05:37 -0000	1.5
+++ report_cust_main.html	1 Mar 2008 22:23:41 -0000	1.6
@@ -29,9 +29,16 @@
       </TR>
 
 %   }
+
+    <% include( '/elements/tr-select-payby.html',
+                  'payby_type' => 'cust',
+                  'multiple'   => 1,
+                  'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
+              )
+    %>
     
     <% include( '/elements/tr-input-lessthan_greaterthan.html',
-                  label   => 'Current Balance',
+                  label   => 'Current balance',
                   field   => 'current_balance',
               )
     %>
@@ -69,7 +76,7 @@
 <%once>
 
 my %label = (
-  'signupdate'     => 'Signup Date',
+  'signupdate'     => 'Signup date',
 );
 
 </%once>

Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cust_main.html	19 Dec 2007 21:05:37 -0000	1.8
+++ cust_main.html	1 Mar 2008 22:23:41 -0000	1.9
@@ -68,6 +68,17 @@
 
 }
 
+###
+# payby
+###
+
+my @payby = grep /^([A-Z]{4})$/, $cgi->param('payby');
+if ( @payby ) {
+  push @where, '( '. join(' OR ', map "cust_main.payby = '$_'", @payby). ' )';
+}
+
+###
+
 ##
 # amounts
 ##



More information about the freeside-commits mailing list