From 80fa034996a7546f22b5b05af42fc700a5b76099 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 5 May 2021 15:50:57 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Konvertierung:=20nur=20ben?= =?utf8?q?=C3=B6tigte=20Paramter=20an=20new=5Ffrom=5Ftime=5Frecordings?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/ConvertTimeRecordings.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/SL/BackgroundJob/ConvertTimeRecordings.pm b/SL/BackgroundJob/ConvertTimeRecordings.pm index 1236c3a11..3071a57ce 100644 --- a/SL/BackgroundJob/ConvertTimeRecordings.pm +++ b/SL/BackgroundJob/ConvertTimeRecordings.pm @@ -156,8 +156,10 @@ sub convert_without_linking { my %time_recordings_by_customer_id; push @{ $time_recordings_by_customer_id{$_->customer_id} }, $_ for @$time_recordings; - my %convert_params = map { $_ => $self->params->{$_} } qw(rounding link_order project_id); - $convert_params{default_part_id} = $self->params->{part_id}; + my %convert_params = ( + rounding => $self->params->{rounding}, + default_part_id => $self->params->{part_id}, + ); my @donumbers; foreach my $customer_id (keys %time_recordings_by_customer_id) { @@ -193,8 +195,10 @@ sub convert_without_linking { sub convert_with_linking { my ($self, $time_recordings_by_order_id, $orders_by_order_id) = @_; - my %convert_params = map { $_ => $self->params->{$_} } qw(rounding link_order project_id); - $convert_params{default_part_id} = $self->params->{part_id}; + my %convert_params = ( + rounding => $self->params->{rounding}, + default_part_id => $self->params->{part_id}, + ); my @donumbers; foreach my $related_order_id (keys %$time_recordings_by_order_id) { -- 2.20.1