SelfTests falscher Zeitraum für Standard-Tests
authorJan Büren <jan@kivitendo-premium.de>
Fri, 26 Feb 2016 13:23:39 +0000 (14:23 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Thu, 10 Mar 2016 10:48:25 +0000 (11:48 +0100)
SL/BackgroundJob/SelfTest/Transactions.pm

index 0333ec9..f57c3fd 100644 (file)
@@ -43,12 +43,8 @@ sub _setup {
   my ($self) = @_;
 
   # TODO FIXME calc dates better, unless this is wanted
-#  my $year =
-  #$self->fromdate(DateTime->new(day => 1, month => 1, year => DateTime->today->year));
-  #$self->todate($self->fromdate->clone->add(years => 1)->add(days => -1));
-  $self->fromdate(DateTime->new(day => 1, month => 1, year => 2015));
+  $self->fromdate(DateTime->new(day => 1, month => 1, year => DateTime->today->year));
   $self->todate($self->fromdate->clone->add(years => 1)->add(days => -1));
-  $main::lxdebug->message(0, 'hier und dort:' . $self->fromdate . ' mit ' . $self->todate);
   $self->dbh($::form->get_standard_dbh);
 }