[freeside-commits] freeside/httemplate/search report_receivables.cgi, 1.36, 1.36.2.1
Ivan,,,
ivan at wavetail.420.am
Sat Oct 27 20:55:30 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv6525/httemplate/search
Modified Files:
Tag: FREESIDE_1_7_BRANCH
report_receivables.cgi
Log Message:
mysql me harder
Index: report_receivables.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.cgi,v
retrieving revision 1.36
retrieving revision 1.36.2.1
diff -u -d -r1.36 -r1.36.2.1
--- report_receivables.cgi 14 Feb 2007 22:43:07 -0000 1.36
+++ report_receivables.cgi 28 Oct 2007 03:55:28 -0000 1.36.2.1
@@ -92,13 +92,13 @@
#handle start and end ranges
+ my $str2time = str2time;
+
#24h * 60m * 60s
- push @where, "cust_bill._date <= extract(epoch from now())-".
- ($start * 86400)
+ push @where, "cust_bill._date <= $str2time now() ) - ". ($start * 86400)
if $start;
- push @where, "cust_bill._date > extract(epoch from now()) - ".
- ($end * 86400)
+ push @where, "cust_bill._date > $str2time now() ) - ". ($end * 86400)
if $end;
#handle 'cust' option
More information about the freeside-commits
mailing list