You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2008/11/26 11:32:02 UTC

svn commit: r720789 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy

Author: jleroux
Date: Wed Nov 26 02:32:01 2008
New Revision: 720789

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