X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/f0d897b6b9ffbbfe98c0dbc1638ef30c9b798729..6454c25f66fd37513e8f8e94167c019e372c3ef7:/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};