[Bps-public-commit] r11668 - RT-Extension-Reports/html/Reports/Types

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Apr 10 00:24:01 EDT 2008


Author: sunnavy
Date: Thu Apr 10 00:23:52 2008
New Revision: 11668

Modified:
   RT-Extension-Reports/html/Reports/Types/ActiveOrInactive
   RT-Extension-Reports/html/Reports/Types/General
   RT-Extension-Reports/html/Reports/Types/TicketsMoved
   RT-Extension-Reports/html/Reports/Types/TimeWorked

Log:
never counter tickets  created after reports date

Modified: RT-Extension-Reports/html/Reports/Types/ActiveOrInactive
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/ActiveOrInactive	(original)
+++ RT-Extension-Reports/html/Reports/Types/ActiveOrInactive	Thu Apr 10 00:23:52 2008
@@ -143,7 +143,7 @@
                     next unless RT::Extension::Reports::Filter::filter_ticket( Filter => $Filter, Ticket => $ticket, Date => $tmp_date, OnlyDate => 1 );
             }
 
-            if ( $ticket->CreatedObj->Date le $tmp_date->Date ) {
+            next if $ticket->Created gt $tmp_date->Date . ' 23:59:59';
             my $txns = $ticket->Transactions;
             $txns->Limit( FIELD => 'Type', VALUE => 'Status', ENTRYAGGREGATOR
                     => 'AND' );
@@ -183,7 +183,6 @@
                     $data{$tmp_date->Date}{$ticket->QueueObj->Name}{'31+'}++;
                 }
             }
-            }
         }
         continue {
             $tmp_date->AddDay;

Modified: RT-Extension-Reports/html/Reports/Types/General
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/General	(original)
+++ RT-Extension-Reports/html/Reports/Types/General	Thu Apr 10 00:23:52 2008
@@ -122,7 +122,7 @@
                     next TICKET unless RT::Extension::Reports::Filter::filter_ticket( Filter => $Filter, Ticket => $ticket, Date => $tmp_date, OnlyDate => 1 );
             }
 
-            if ( $ticket->CreatedObj->Date le $tmp_date->Date ) {
+            next if $ticket->Created gt $tmp_date->Date . ' 23:59:59';
 
             if ( $ticket->CreatedObj->Date eq $tmp_date->Date ) {
                 $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}{Created}++; # Created
@@ -140,7 +140,6 @@
                 $data{$tmp_date->Date}{$ticket->QueueObj->Name}{ucfirst $ticket->Status}++;
 
             }
-            }
         }
         continue {
             $tmp_date->AddDay;

Modified: RT-Extension-Reports/html/Reports/Types/TicketsMoved
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/TicketsMoved	(original)
+++ RT-Extension-Reports/html/Reports/Types/TicketsMoved	Thu Apr 10 00:23:52 2008
@@ -139,6 +139,8 @@
                     next unless RT::Extension::Reports::Filter::filter_ticket( Filter => $Filter, Ticket => $ticket, Date => $tmp_date, OnlyDate => 1 );
             }
 
+            next if $ticket->Created gt $tmp_date->Date . ' 23:59:59';
+
             my $txns = $ticket->Transactions;
             $txns->Limit( FIELD => 'Type', VALUE => 'Set', ENTRYAGGREGATOR
                     => 'AND' );

Modified: RT-Extension-Reports/html/Reports/Types/TimeWorked
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/TimeWorked	(original)
+++ RT-Extension-Reports/html/Reports/Types/TimeWorked	Thu Apr 10 00:23:52 2008
@@ -130,6 +130,8 @@
                     next unless RT::Extension::Reports::Filter::filter_ticket( Filter => $Filter, Ticket => $ticket, Date => $tmp_date, OnlyDate => 1 );
             }
 
+            next if $ticket->Created gt $tmp_date->Date . ' 23:59:59';
+
             my $txns = $ticket->Transactions;
             $txns->Limit( FIELD => 'Created', VALUE => $tmp_date->Date . 
 ' 23:59:59', ENTRYAGGREGATOR => 'AND', OPERATOR => '>' );



More information about the Bps-public-commit mailing list