- # push @{ $time_recordings_by_customer_id{$_->customer_id} }, $_ for @$time_recordings;
- # loop over all entries and add default or user defined params:
-
- for my $source_entry (@$time_recordings) {
- # set user defaults for processing
- $source_entry->{$_} = $self->$_ for qw(rounding link_project);
- foreach (qw(project_id parts_id)) {
- $source_entry->{$_} = $self->{$_} if length ($self->{$_});
- }
- push @{ $time_recordings_by_customer_id{$source_entry->customer_id} }, $source_entry;
- }
+ push @{ $time_recordings_by_customer_id{$_->customer_id} }, $_ for @$time_recordings;
+
+ my %convert_params = map { $_ => $data->{$_} } qw(rounding link_project part_id project_id);
+