From 78edb3227aaa7c9dcb26bbe1781cdb1027e648f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 28 Apr 2021 15:23:08 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Konvertierung:=20ber=C3=BCcksic?= =?utf8?q?htigen,=20dass=20Startzeit=20fehlen=20kann?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/DeliveryOrder.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 9d00da021..6068b13aa 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -213,7 +213,7 @@ sub new_from_time_recordings { die 'article unit must be time based for entry "' . $source->displayable_times . '"' if !$part_by_part_id{$part_id}->unit_obj->is_time_based; } - my $date = $source->start_time->to_kivitendo; + my $date = $source->date->to_kivitendo; $entries->{$part_id}->{$date}->{duration} += $params{rounding} ? nhimult(0.25, ($source->duration_in_hours)) : _round_total($source->duration_in_hours); @@ -223,7 +223,7 @@ sub new_from_time_recordings { $entries->{$part_id}->{$date}->{content} .= '
  • ' . $new_description . '
  • ' unless $entries->{$part_id}->{$date}->{content} =~ m/\Q$new_description/; - $entries->{$part_id}->{$date}->{date_obj} = $source->start_time; # for sorting + $entries->{$part_id}->{$date}->{date_obj} = $source->start_time || $source->date; # for sorting } my @items; -- 2.20.1