From dfd81ab5ff8dace18f05d97a8597de38ab22376e Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Mon, 14 May 2012 21:03:05 +0000 Subject: [PATCH] DEPRECATION: specialpurpose/hhfacility: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338419 13f79535-47bb-0310-9956-ffa450edef68 --- .../hhfacility/src/org/ofbiz/hhfacility/FacilityServices.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specialpurpose/hhfacility/src/org/ofbiz/hhfacility/FacilityServices.java b/specialpurpose/hhfacility/src/org/ofbiz/hhfacility/FacilityServices.java index fb3d3f917c..fb00bf56d8 100644 --- a/specialpurpose/hhfacility/src/org/ofbiz/hhfacility/FacilityServices.java +++ b/specialpurpose/hhfacility/src/org/ofbiz/hhfacility/FacilityServices.java @@ -76,7 +76,7 @@ public class FacilityServices { List invItemList = null; try { invItemList = delegator.findByAnd("InventoryItem", - UtilMisc.toMap("productId", productId, "facilityId", facilityId)); + UtilMisc.toMap("productId", productId, "facilityId", facilityId), null, false); } catch (GenericEntityException e) { Debug.logError(e, module); throw new GeneralRuntimeException(e.getMessage()); @@ -138,7 +138,7 @@ public class FacilityServices { // Now get the inventory items that are found for that location, facility and product List invItemList = null; try { - invItemList = delegator.findByAnd("InventoryItem", UtilMisc.toMap("productId", productId, "facilityId", facilityId, "locationSeqId", locationSeqId)); + invItemList = delegator.findByAnd("InventoryItem", UtilMisc.toMap("productId", productId, "facilityId", facilityId, "locationSeqId", locationSeqId), null, false); } catch (GenericEntityException e) { Debug.logError(e, "updateProductStocktake failed getting inventory items", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ProductErrorFailedProductStockTake", locale));