Author: jacopoc
Date: Thu May 21 14:39:32 2009
New Revision: 777136
URL:
http://svn.apache.org/viewvc?rev=777136&view=revLog:
Fixed another error introduced by the migration to BigDecimal; easy to fix by very difficult to track down; it was preventing the proper calculation of materials standard costs for products.
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java?rev=777136&r1=777135&r2=777136&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java Thu May 21 14:39:32 2009
@@ -412,7 +412,7 @@
Map componentMap = new HashMap();
BOMNode node = (BOMNode)componentsIt.next();
componentMap.put("product", node.getProduct());
- componentMap.put("quantity", node);
+ componentMap.put("quantity", node.getQuantity());
componentsMap.add(componentMap);
}
result.put("componentsMap", componentsMap);