svn commit: r668079 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy

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

svn commit: r668079 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy

jacopoc
Author: jacopoc
Date: Mon Jun 16 01:50:52 2008
New Revision: 668079

URL: http://svn.apache.org/viewvc?rev=668079&view=rev
Log:
Misc fixes after migration to Groovy.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy

Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy?rev=668079&r1=668078&r2=668079&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy Mon Jun 16 01:50:52 2008
@@ -18,6 +18,7 @@
  */
 
 import org.ofbiz.entity.*;
+import org.ofbiz.entity.condition.EntityCondition;
 import org.ofbiz.entity.util.*;
 
 facilityId = request.getParameter("facilityId");
@@ -64,12 +65,12 @@
                     totalReceived += rejected.doubleValue();
             }
         }
-        receivedQuantities.put(thisItem.returnItemSeqId = new Double(totalReceived));
+        receivedQuantities[thisItem.returnItemSeqId] = new Double(totalReceived);
     }
 }
 
 if (returnHeader) {
-    context.receivedItems = delegator.findList("ShipmentReceipt", [returnId : returnId], null, null, null, false);
+    context.receivedItems = delegator.findList("ShipmentReceipt", EntityCondition.makeCondition("returnId", returnId), null, null, null, false);
 }
 
 // facilities