From 89bb37d2166b422965211c11ce16e5f74d76b6ed Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Fri, 12 Jun 2009 14:01:38 +0000 Subject: [PATCH] libero: * MPPProductBOMLine.isCoProduct - implementation was commented out => uncomment it * add MPPProductBOMLine.isByProduct method --- base/src/org/eevolution/model/MPPProductBOMLine.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/base/src/org/eevolution/model/MPPProductBOMLine.java b/base/src/org/eevolution/model/MPPProductBOMLine.java index bc098f7262..86e36548c6 100644 --- a/base/src/org/eevolution/model/MPPProductBOMLine.java +++ b/base/src/org/eevolution/model/MPPProductBOMLine.java @@ -155,11 +155,16 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine return true; } + public boolean isByProduct() + { + String componentType = getComponentType(); + return COMPONENTTYPE_By_Product.equals(componentType); + } + public boolean isCoProduct() { -// String componentType = getComponentType(); -// return COMPONENTTYPE_ByProduct.equals(componentType); // TODO - return false; + String componentType = getComponentType(); + return COMPONENTTYPE_Co_Product.equals(componentType); } /**