Author: apatel
Date: Tue Aug 14 04:15:12 2007
New Revision: 565704
URL:
http://svn.apache.org/viewvc?view=rev&rev=565704Log:
Now adding Refurbished item to replacement order only if its in stock.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java?view=diff&rev=565704&r1=565703&r2=565704==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java Tue Aug 14 04:15:12 2007
@@ -1473,13 +1473,13 @@
if (UtilValidate.isNotEmpty(refurbItem)) {
boolean inventoryAvailable = false;
try {
- Map invReqResult = dispatcher.runSync("isStoreInventoryAvailableOrNotRequired", UtilMisc.toMap("productStoreId", orderHeader.get("productStoreId"),
+ Map invReqResult = dispatcher.runSync("isStoreInventoryAvailable", UtilMisc.toMap("productStoreId", orderHeader.get("productStoreId"),
"productId", refurbItem.getString("productId"),
"product", refurbItem, "quantity", quantity));
if (ServiceUtil.isError(invReqResult)) {
- Debug.logError("Error calling isStoreInventoryAvailableOrNotRequired service, result is: " + invReqResult, module);
+ Debug.logError("Error calling isStoreInventoryAvailable service, result is: " + invReqResult, module);
} else {
- inventoryAvailable = "Y".equals((String) invReqResult.get("availableOrNotRequired"));
+ inventoryAvailable = "Y".equals((String) invReqResult.get("available"));
}
} catch (GenericServiceException e) {
Debug.logError(e, "Fatal error calling inventory checking services: " + e.toString(), module);