|
From: Si C. <si...@gr...> - 2007-02-13 19:47:24
|
Author: sichen
Date: 2007-02-13 11:47:15 -0800 (Tue, 13 Feb 2007)
New Revision: 58
Modified:
versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java
Log:
fix an incompatibility with java 1.4
Modified: versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java
===================================================================
--- versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java 2007-02-09 04:57:19 UTC (rev 57)
+++ versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java 2007-02-13 19:47:15 UTC (rev 58)
@@ -361,7 +361,7 @@
BigDecimal averageCost = ZERO;
if (onHand.doubleValue() > 0.0) {
- averageCost = new BigDecimal(inventoryValue/onHand).setScale(decimals, rounding);
+ averageCost = new BigDecimal(inventoryValue.doubleValue()/onHand.doubleValue()).setScale(decimals, rounding);
}
// Verify that productId exists
|