X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/2c6997eca202daacb743c80d1d65c6faed61ad35..1ec0f541eb70afb7b2058acf9d6847e6e6e21dff:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 79d661837..8895bf888 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1121,6 +1121,26 @@ sub all_parts { $form->{parts} = \@assemblies; } + if ($form->{l_pricegroups} ) { + my $query = <{parts} }) { + do_statement($form, $sth, $query, conv_i($part->{id})); + + while (my $ref = $sth->fetchrow_hashref("NAME_lc")) { + $part->{"pricegroup_$ref->{pricegroup_id}"} = $ref->{price}; + } + $sth->finish; + } + }; + + $main::lxdebug->leave_sub(); return wantarray ? @{ $form->{parts} } : $form->{parts};