Author: apatel
Date: Tue Aug 14 17:51:56 2007
New Revision: 565990
URL:
http://svn.apache.org/viewvc?view=rev&rev=565990Log:
Now moving ReturnHeader to completed in two steps as per the StatusValidChange Rule.
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java?view=diff&rev=565990&r1=565989&r2=565990==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java Tue Aug 14 17:51:56 2007
@@ -859,9 +859,9 @@
}
if (UtilValidate.isNotEmpty(statusId) && statusId.equals("RETURN_ACCEPTED")) {
- statusId = "RETURN_COMPLETED";
try {
- dispatcher.runSync("updateReturnHeader", UtilMisc.toMap("statusId", statusId, "returnId", returnId, "userLogin", userLogin));
+ dispatcher.runSync("updateReturnHeader", UtilMisc.toMap("statusId", "RETURN_RECEIVED", "returnId", returnId, "userLogin", userLogin));
+ dispatcher.runSync("updateReturnHeader", UtilMisc.toMap("statusId", "RETURN_COMPLETED", "returnId", returnId, "userLogin", userLogin));
} catch (GenericServiceException e) {
String errMsg = "Error Storing the value: " + e.toString();
errorMapList.add(UtilMisc.toMap("reasonCode", "GenericEntityException", "description", errMsg));