From 8498b76e9d852ef6916a32bff41a6d5f5326ab94 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 25 Apr 2009 10:50:08 +0000 Subject: [PATCH] MPPProductBOMLine: Use DBException(SQLException e, String sql) when possible https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2780418&group_id=176962 * fix isCoProduct() method --- base/src/org/eevolution/model/MPPProductBOMLine.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/base/src/org/eevolution/model/MPPProductBOMLine.java b/base/src/org/eevolution/model/MPPProductBOMLine.java index f8afb7c2f7..529571a91b 100644 --- a/base/src/org/eevolution/model/MPPProductBOMLine.java +++ b/base/src/org/eevolution/model/MPPProductBOMLine.java @@ -154,8 +154,9 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine public boolean isCoProduct() { - String componentType = getComponentType(); - return COMPONENTTYPE_ByProduct.equals(componentType); // TODO +// String componentType = getComponentType(); +// return COMPONENTTYPE_ByProduct.equals(componentType); // TODO + return false; } /** @@ -292,7 +293,7 @@ class ProductLowLevelCalculator } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally { @@ -346,7 +347,7 @@ class ProductLowLevelCalculator } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally {