From 9ac80938379c017dda977dba51053c2983e3eb17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 29 Oct 2012 14:55:08 +0100 Subject: [PATCH] Im Druck auch den Typ von Artikeln mit ausliefern --- SL/IC.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); } -- 2.20.1