Author: jacopoc
Date: Thu May 21 14:04:00 2009
New Revision: 777125
URL:
http://svn.apache.org/viewvc?rev=777125&view=revLog:
Fixed bug (incomplete migration to BigDecimal) that was preventing the estimated standard routing costs of a product to be computed.
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java?rev=777125&r1=777124&r2=777125&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java Thu May 21 14:04:00 2009
@@ -74,10 +74,10 @@
long estimatedTaskTime = ProductionRun.getEstimatedTaskTime(task, quantity, productId, routingId, dispatcher);
result.put("estimatedTaskTime", Long.valueOf(estimatedTaskTime));
if (task != null && task.get("estimatedSetupMillis") != null) {
- result.put("setupTime", task.getDouble("estimatedSetupMillis"));
+ result.put("setupTime", task.getBigDecimal("estimatedSetupMillis"));
}
if (task != null && task.get("estimatedMilliSeconds") != null) {
- result.put("taskUnitTime", task.getDouble("estimatedMilliSeconds"));
+ result.put("taskUnitTime", task.getBigDecimal("estimatedMilliSeconds"));
}
return result;
}