From: Jan Büren Date: Mon, 18 May 2009 15:44:47 +0000 (+0000) Subject: Fix fuer Bug 979 - EK der Einzelwaren fuer ein Erzeugnis wird erst spaeter angezeigt X-Git-Tag: release-2.6.0rc1~31 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c82106b1c6eae4b7abbf60fb3e9ae4ecad7dcb04;p=kivitendo-erp.git Fix fuer Bug 979 - EK der Einzelwaren fuer ein Erzeugnis wird erst spaeter angezeigt --- diff --git a/SL/IC.pm b/SL/IC.pm index 5314d4b8e..ea8b92926 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -698,8 +698,9 @@ sub assembly_item { my $dbh = $form->dbconnect($myconfig); my $query = - qq|SELECT p.id, p.partnumber, p.description, p.sellprice, p.weight, p.onhand, p.unit, pg.partsgroup, - p.price_factor_id, pfac.factor AS price_factor + qq|SELECT p.id, p.partnumber, p.description, p.sellprice, + p.weight, p.onhand, p.unit, pg.partsgroup, p.lastcost, + p.price_factor_id, pfac.factor AS price_factor FROM parts p LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id) LEFT JOIN price_factors pfac ON pfac.id = p.price_factor_id diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 5b377b639..e0d59d7d7 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1680,6 +1680,7 @@ sub assembly_row { {"id_$i"}> {"sellprice_$i"}> + {"lastcost_$i"}> {"weight_$i"}> {"price_factor_id_$i"}> {"price_factor_$i"}> diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 18d2f4f28..058195f6a 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -695,7 +695,7 @@ sub check_form { qw(listprice rop stock); @flds = - qw(id qty unit bom partnumber description sellprice weight runningnumber partsgroup); + qw(id qty unit bom partnumber description sellprice weight runningnumber partsgroup lastcost); for my $i (1 .. ($form->{assembly_rows} - 1)) { if ($form->{"qty_$i"}) {