Zeiterfassung: Konvertierung: von-bis-Filter benutzt Datum statt End-Zeit.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 30 Apr 2021 16:57:10 +0000 (18:57 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 5 May 2021 15:25:03 +0000 (17:25 +0200)
End-Zeit gibt es nicht bei Eingabe mit Datum/Dauer.

SL/BackgroundJob/ConvertTimeRecordings.pm

index f2139ae..d33be0b 100644 (file)
@@ -76,8 +76,8 @@ sub run {
   my %customer_where;
   %customer_where = ('customer.customernumber' => $self->data->{customernumbers}) if 'ARRAY' eq ref $self->data->{customernumbers};
 
-  my $time_recordings = SL::DB::Manager::TimeRecording->get_all(where        => [end_time => { ge_lt => [ $from_date, $to_date ]},
-                                                                                 or => [booked => 0, booked => undef],
+  my $time_recordings = SL::DB::Manager::TimeRecording->get_all(where        => [date => { ge_lt => [ $from_date, $to_date ]},
+                                                                                 or   => [booked => 0, booked => undef],
                                                                                  %customer_where],
                                                                 with_objects => ['customer']);