From 73c6a7262e8ac1bc15d1456865c7a1778a2913e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 14 May 2009 16:24:09 +0000 Subject: [PATCH] Erzueugnisse mit Preisfaktoren beim laden mit auslesen. --- SL/IC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/IC.pm b/SL/IC.pm index 784366582..a9360346f 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -80,10 +80,11 @@ sub get_part { $query = qq|SELECT p.id, p.partnumber, p.description, p.sellprice, p.lastcost, p.weight, a.qty, a.bom, p.unit, - pg.partsgroup + pg.partsgroup, p.price_factor_id, pfac.factor AS price_factor FROM parts p JOIN assembly a ON (a.parts_id = p.id) LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id) + LEFT JOIN price_factors pfac ON pfac.id = p.price_factor_id WHERE (a.id = ?) ORDER BY $oid{$myconfig->{dbdriver}}|; $sth = prepare_execute_query($form, $dbh, $query, conv_i($form->{id})); -- 2.20.1