You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bi...@apache.org on 2008/05/21 16:26:27 UTC

svn commit: r658703 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh

Author: bibryam
Date: Wed May 21 07:26:27 2008
New Revision: 658703

URL: http://svn.apache.org/viewvc?rev=658703&view=rev
Log:
Small bug fix.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh?rev=658703&r1=658702&r2=658703&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh Wed May 21 07:26:27 2008
@@ -318,7 +318,10 @@
         contextInput = UtilMisc.toMap("productId", productId, "userLogin", userLogin);
         resultOutput = dispatcher.runSync("getProductManufacturingSummaryByFacility", contextInput);
         manufacturingInQuantitySummaryByFacility = resultOutput.get("summaryInByFacility");
-        Double productionQuantity = (Double) manufacturingInQuantitySummaryByFacility.get("estimatedQuantityTotal");
+        Double productionQuantity = 0;
+        for (manQuantityIter = manufacturingInQuantitySummaryByFacility.values().iterator(); manQuantityIter.hasNext();) {
+            productionQuantity += (Double)manQuantityIter.next().get("estimatedQuantityTotal");
+        } 
         productionMap.put(productId, productionQuantity);
     }
     context.put("productionProductQuantityMap", productionMap);