X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Ftimeworked.html;h=1d877e6ef219039862d5d5b9074f1f1d114bad68;hb=9a778387bc4bfc97d28b25a9c123700fc6c15062;hp=b72dd0ea998040f31654e57947177f740763ee37;hpb=1591e861f33cd2920e6af6fb118c173f6806be76;p=freeside.git diff --git a/httemplate/search/timeworked.html b/httemplate/search/timeworked.html index b72dd0ea9..1d877e6ef 100644 --- a/httemplate/search/timeworked.html +++ b/httemplate/search/timeworked.html @@ -32,19 +32,7 @@ '', '', ], - 'html_foot' => sub { - '
'. - ''. - '

'. - ''; - }, + 'html_foot' => $html_foot, ) %> @@ -96,6 +84,13 @@ my $where = " "; #AND $wheretimeleft +my $str2time_sql = str2time_sql; +my $closing = str2time_sql_closing; + +my($begin, $end) = FS::UI::Web::parse_beginning_ending($cgi); +$where .= " AND $str2time_sql Transactions.Created $closing >= $begin ". + " AND $str2time_sql Transactions.Created $closing <= $end "; + my $query = " SELECT Tickets.id, Tickets.Subject, TO_CHAR(Transactions.Created, 'Dy Mon DD HH24:MI:SS YYYY'), @@ -114,4 +109,22 @@ my $count_query = "SELECT COUNT(*) FROM Transactions $where"; my $link = [ "${p}rt/Ticket/Display.html?id=", sub { shift->[0]; } ]; +my $html_foot = qq' + + +
+ + +
+
+ +'; +