Author: hansbak
Date: Sat Dec 6 01:42:59 2008
New Revision: 723962
URL:
http://svn.apache.org/viewvc?rev=723962&view=revLog:
inventory CSV export not working anymore: corrected
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy
ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy?rev=723962&r1=723961&r2=723962&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy Sat Dec 6 01:42:59 2008
@@ -40,7 +40,7 @@
resultMap = [:];
beganTransaction = TransactionUtil.begin();
invItemListItr = delegator.find("InventoryItem", conditionList, null, null, ['productId'], null);
- invItemListItr.each { inventoryItem ->
+ while ((inventoryItem = invItemListItr.next()) != null) {
productId = inventoryItem.productId;
product = delegator.findOne("Product", [productId : productId], false);
productFacility = delegator.findOne("ProductFacility", [productId : productId, facilityId : facilityId], false);
Modified: ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml?rev=723962&r1=723961&r2=723962&view=diff==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml Sat Dec 6 01:42:59 2008
@@ -365,7 +365,7 @@
<link target="ViewFacilityInventoryByProductExport?${searchParameterString}" text="${uiLabelMap.CommonExport}" style="buttontext"/>
<link target="InventoryItemTotals?facilityId=${facilityId}&action=Y" text="${uiLabelMap.ProductInventoryItemTotals}" style="buttontext"/>
<link target="InventoryItemGrandTotals?facilityId=${facilityId}&action=Y" text="${uiLabelMap.ProductInventoryItemGrandTotals}" style="buttontext"/>
- <link target="InventoryItemTotalsExport.csv?action=Y" text="${uiLabelMap.ProductInventoryItemTotalsExport}" style="buttontext"/>
+ <link target="InventoryItemTotalsExport.csv?facilityId=${facilityId}&action=Y" text="${uiLabelMap.ProductInventoryItemTotalsExport}" style="buttontext"/>
</container>
</decorator-section>
<decorator-section name="search-options">