You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2008/06/16 10:50:52 UTC
svn commit: r668079 -
/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy
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