X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Ftimeworked.html;h=d07cd4f591b7d8f82f3d15547bdf7ab9ec2df042;hp=29f9b2546b1b572a9de9dcad6acf934c1d4d0f98;hb=8dba5cb96454bf8ec81333ebac381180731396f1;hpb=1c478456e58dc554ff08e06a8d419f32c82c6529
diff --git a/httemplate/search/timeworked.html b/httemplate/search/timeworked.html
index 29f9b2546..d07cd4f59 100644
--- a/httemplate/search/timeworked.html
+++ b/httemplate/search/timeworked.html
@@ -32,19 +32,7 @@
'',
'',
],
- 'html_foot' => sub {
- '
'.
- ''.
- '
'.
- '';
- },
+ 'html_foot' => $html_foot,
)
%>
@@ -62,7 +50,7 @@ my $transactiontime = "
END
";
-push @groupby, qw( transactions.type newvalue oldvalue timetaken );
+push @groupby, qw( Transactions.Type NewValue OldValue TimeTaken );
my $appliedtimeclause = "COALESCE (SUM(acct_rt_transaction.seconds), 0)";
@@ -99,9 +87,9 @@ my $where = "
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($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,
@@ -121,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'
+
+
+
+
+
+
+
+
+';
+
%init>