[freeside-commits] freeside/httemplate/search cust_main.html, 1.6.2.2, 1.6.2.3 report_cust_main.html, 1.1.2.4, 1.1.2.5
Ivan,,,
ivan at wavetail.420.am
Sat Mar 1 14:23:44 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv5182
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- report_cust_main.html 19 Dec 2007 21:05:53 -0000 1.1.2.4
+++ report_cust_main.html 1 Mar 2008 22:23:42 -0000 1.1.2.5
@@ -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.6.2.2
retrieving revision 1.6.2.3
diff -u -d -r1.6.2.2 -r1.6.2.3
--- cust_main.html 19 Dec 2007 21:05:53 -0000 1.6.2.2
+++ cust_main.html 1 Mar 2008 22:23:42 -0000 1.6.2.3
@@ -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