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:
parent
185c19e8b2
commit
8498b76e9d
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue