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
This commit is contained in:
teo_sarca 2009-04-25 10:50:08 +00:00
parent 185c19e8b2
commit 8498b76e9d
1 changed files with 5 additions and 4 deletions

View File

@ -154,8 +154,9 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine
public boolean isCoProduct() public boolean isCoProduct()
{ {
String componentType = getComponentType(); // String componentType = getComponentType();
return COMPONENTTYPE_ByProduct.equals(componentType); // TODO // return COMPONENTTYPE_ByProduct.equals(componentType); // TODO
return false;
} }
/** /**
@ -292,7 +293,7 @@ class ProductLowLevelCalculator
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {
@ -346,7 +347,7 @@ class ProductLowLevelCalculator
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {