[freeside-commits] freeside/httemplate/search report_receivables.cgi, 1.37, 1.38
Ivan,,,
ivan at wavetail.420.am
Sat Oct 27 20:55:29 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv6521/httemplate/search
Modified Files:
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.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- report_receivables.cgi 13 Sep 2007 22:05:31 -0000 1.37
+++ report_receivables.cgi 28 Oct 2007 03:55:27 -0000 1.38
@@ -82,13 +82,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