From: Jan Büren Date: Fri, 26 Feb 2016 13:23:39 +0000 (+0100) Subject: SelfTests falscher Zeitraum für Standard-Tests X-Git-Tag: release-3.4.1~366 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cd5739fff65a66e8d838d7159c66e6c324b4f54e;p=kivitendo-erp.git SelfTests falscher Zeitraum für Standard-Tests --- diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index 0333ec9b3..f57c3fded 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -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); }