[freeside-commits] freeside/httemplate/search timeworked.html, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Mon Nov 23 23:24:00 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv22279/search
Modified Files:
timeworked.html
Log Message:
add date constratint on time worked search
Index: timeworked.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/timeworked.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- timeworked.html 12 Feb 2008 19:24:12 -0000 1.6
+++ timeworked.html 24 Nov 2009 07:23:58 -0000 1.7
@@ -96,6 +96,13 @@
";
#AND $wheretimeleft
+my $str2time_sql = str2time_sql;
+my $closing = str2time_sql_closing;
+
+my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);
+$where .= " AND $str2time_sql Transactions.Created $closing >= $beginning ".
+ " AND $str2time_sql Transactions.Created $closing <= $ending";
+
my $query = "
SELECT Tickets.id, Tickets.Subject,
TO_CHAR(Transactions.Created, 'Dy Mon DD HH24:MI:SS YYYY'),
More information about the freeside-commits
mailing list