Author: jleroux
Date: Wed Nov 26 02:32:01 2008
New Revision: 720789
URL:
http://svn.apache.org/viewvc?rev=720789&view=revLog:
A patch from Karim Rahimpur " packing slip pdf generation fails with Derby" (
https://issues.apache.org/jira/browse/OFBIZ-2061) - OFBIZ-2061
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy?rev=720789&r1=720788&r2=720789&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy Wed Nov 26 02:32:01 2008
@@ -57,7 +57,7 @@
),
EntityOperator.AND), null, null, null, null);
-previousShipmentIter.each { previousShipmentItem ->
+while (previousShipmentItem = previousShipmentIter.next()) {
if (!previousShipmentItem.shipmentId.equals(shipment.shipmentId)) {
previousShipmentItems = previousShipmentItem.getRelated("ShipmentItem");
previousShipmentItems.each { shipmentItem ->
@@ -125,4 +125,4 @@
}
packages.add(lines);
}
-context.packages = packages;
\ No newline at end of file
+context.packages = packages;