X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=163f590696a14956833795e5032290e60c5dfb98;hb=f207efd1ad8835c046c2945c3d0d693626622521;hp=191a2d30051e9540cff3221e6d754c9a8a711937;hpb=52131da17ff7e648b2fc2f2f853e6082dfe238e5;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index 191a2d300..163f59069 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1698,6 +1698,16 @@ sub prepare_parts_for_printing { } } + my $parts = SL::DB::Manager::Part->get_all(query => [ id => \@part_ids ]); + my %parts_by_id = map { $_->id => $_ } @$parts; + + for my $i (1..$rowcount) { + my $id = $form->{"${prefix}${i}"}; + next unless $id; + + push @{ $form->{TEMPLATE_ARRAYS}{part_type} }, $parts_by_id{$id}->type; + } + $main::lxdebug->leave_sub(); }