RollupBillOfMaterial: fixed typo errors which opened huge bugs :)

This commit is contained in:
teo_sarca 2008-12-11 21:05:31 +00:00
parent c28be88143
commit 60a7ad7de6
1 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ public class RollupBillOfMaterial extends SvrProcess
{ {
PP_Product_BOM_ID = pp.getPP_Product_BOM_ID(); PP_Product_BOM_ID = pp.getPP_Product_BOM_ID();
} }
if (PP_Product_BOM_ID < 0) if (PP_Product_BOM_ID <= 0)
{ {
PP_Product_BOM_ID = MPPProductBOM.getBOMSearchKey(getCtx(), product); PP_Product_BOM_ID = MPPProductBOM.getBOMSearchKey(getCtx(), product);
} }
@ -190,7 +190,7 @@ public class RollupBillOfMaterial extends SvrProcess
for (MPPProductBOMLine bomline : bom.getLines()) for (MPPProductBOMLine bomline : bom.getLines())
{ {
// get the rate for this resource // get the rate for this resource
for (MCost cost : getCosts(product.get_ID())) for (MCost cost : getCosts(bomline.getM_Product_ID()))
{ {
MCostElement element = cost.getCostElement(); MCostElement element = cost.getCostElement();
// check if current cost element type is specified cost element type // check if current cost element type is specified cost element type