X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a72219a9ba7ff1c6cab2d35a057544d8fc0dceb8..d1a7b626e6b6b87539643016a2227c632e64e62b:/SL/DB/DeliveryOrder.pm diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index dd1791bc2..1e0cb49b5 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -19,7 +19,7 @@ use SL::DB::Unit; use SL::Helper::Number qw(_format_total _round_total); -use List::Util qw(first notall); +use List::Util qw(first); use List::MoreUtils qw(any); use Math::Round qw(nhimult); @@ -227,11 +227,12 @@ sub new_from_time_recordings { } my $date = $source->start_time->to_kivitendo; - $entries->{$part_id}->{$date}->{duration} += $source->{rounding} ? - nhimult(0.25, ($source->duration_in_hours)) - : _round_total($source->duration_in_hours); + $entries->{$part_id}->{$date}->{duration} += $source->{rounding} + ? nhimult(0.25, ($source->duration_in_hours)) + : _round_total($source->duration_in_hours); # add content if not already in description - my $new_description = $source->description_as_stripped_html; + my $new_description = '' . $source->description_as_stripped_html; + $entries->{$part_id}->{$date}->{content} ||= ''; $entries->{$part_id}->{$date}->{content} .= '