diff --git a/oagis/servicedef/services.xml b/oagis/servicedef/services.xml index 92af616e6..1f193a917 100644 --- a/oagis/servicedef/services.xml +++ b/oagis/servicedef/services.xml @@ -58,6 +58,7 @@ under the License. Send ConfirmBod + diff --git a/oagis/src/org/ofbiz/oagis/OagisServices.java b/oagis/src/org/ofbiz/oagis/OagisServices.java index 00a3e9e76..3e6650cc2 100644 --- a/oagis/src/org/ofbiz/oagis/OagisServices.java +++ b/oagis/src/org/ofbiz/oagis/OagisServices.java @@ -72,7 +72,8 @@ public class OagisServices { bodyParameters.put("referenceId", referenceId); DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSS'Z'Z"); - String sentDate = dateFormat.format(UtilDateTime.nowTimestamp()); + Timestamp timestamp = UtilDateTime.nowTimestamp(); + String sentDate = dateFormat.format(timestamp); bodyParameters.put("sentDate", sentDate); bodyParameters.put("errorLogicalId", context.get("logicalId")); @@ -98,7 +99,7 @@ public class OagisServices { oagisMsgInfoContext.put("task", "RECIEPT"); oagisMsgInfoContext.put("referenceId", referenceId); oagisMsgInfoContext.put("authId", authId); - oagisMsgInfoContext.put("sentDate", sentDate); + oagisMsgInfoContext.put("sentDate", timestamp); oagisMsgInfoContext.put("confirmation", "0"); oagisMsgInfoContext.put("bsrVerb", "CONFIRM"); oagisMsgInfoContext.put("bsrNoun", "BOD"); diff --git a/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java b/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java index 8f40d2805..4d2b7296b 100644 --- a/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java +++ b/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java @@ -192,7 +192,7 @@ public class OagisShipmentServices { inventoryItem = EntityUtil.getFirst(delegator.findByAnd("InventoryItem", UtilMisc.toMap("productId", invItemItem, "serialNumber", invDetailSerialNum))); Debug.logInfo("======== InventoryItem In Else ========="+inventoryItem, module); reserveOrderItemInventoryCtx.put("inventoryItemId", inventoryItem.getString("inventoryItemId")); - result = dispatcher.runSync("reserveOrderItemInventory", reserveOrderItemInventoryCtx); + result = dispatcher.runSync("reserveAnInventoryItem", reserveOrderItemInventoryCtx); Debug.logInfo("========reserveOrderItemInventory ========="+result, module); }