Author: jacopoc
Date: Mon Jan 26 09:48:04 2009
New Revision: 737660
URL:
http://svn.apache.org/viewvc?rev=737660&view=revLog:
Fix for ClassCastException caused by conversion to BigDecimals reported by Wicus in the user mailing list.
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java?rev=737660&r1=737659&r2=737660&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java Mon Jan 26 09:48:04 2009
@@ -72,7 +72,7 @@
mrpEvent.put("isLate", (isLate? "Y": "N"));
mrpEvent.create();
} else {
- BigDecimal qties = newQuantity.add((BigDecimal)mrpEvent.get("quantity"));
+ BigDecimal qties = newQuantity.add((BigDecimal)mrpEvent.getBigDecimal("quantity"));
mrpEvent.put("quantity", qties);
if (!UtilValidate.isEmpty(eventName)) {
String existingEventName = mrpEvent.getString("eventName");