svn commit: r706067 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r706067 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/packing/PackingSession.java

jleroux@apache.org
Author: jleroux
Date: Sun Oct 19 14:01:45 2008
New Revision: 706067

URL: http://svn.apache.org/viewvc?rev=706067&view=rev
Log:
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);
         }