Author: jleroux
Date: Sun Oct 19 14:01:45 2008
New Revision: 706067
URL:
http://svn.apache.org/viewvc?rev=706067&view=revLog:
Fix an issue with "Gizmo Basket Assembly Pick" type of product where the quantity was not the sum in case of multiple
(OrderItemAndShipGrpInvResAndItemSum.quantityOrdered was used in place of OrderItemAndShipGrpInvResAndItemSum.totQuantityReserved)
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java?rev=706067&r1=706066&r2=706067&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java Sun Oct 19 14:01:45 2008
@@ -962,7 +962,7 @@
// this is an OrderItemAndShipGrpInvResAndItemSum
orderItem = v;
productId = v.getString("inventoryProductId");
- quantity = v.getBigDecimal("quantityOrdered").setScale(2, BigDecimal.ROUND_HALF_UP);
+ quantity = v.getBigDecimal("totQuantityReserved").setScale(2, BigDecimal.ROUND_HALF_UP);
}
Debug.log("created item display object quantity: " + quantity + " (" + productId + ")", module);
}