You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ap...@apache.org on 2007/06/28 10:11:20 UTC
svn commit: r551498 - in /ofbiz/trunk/specialpurpose/oagis:
servicedef/services.xml src/org/ofbiz/oagis/OagisServices.java
src/org/ofbiz/oagis/OagisShipmentServices.java
Author: apatel
Date: Thu Jun 28 01:11:19 2007
New Revision: 551498
URL: http://svn.apache.org/viewvc?view=rev&rev=551498
Log:
Minor clean ups.
Modified:
ofbiz/trunk/specialpurpose/oagis/servicedef/services.xml
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/servicedef/services.xml?view=diff&rev=551498&r1=551497&r2=551498
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/servicedef/services.xml (original)
+++ ofbiz/trunk/specialpurpose/oagis/servicedef/services.xml Thu Jun 28 01:11:19 2007
@@ -58,6 +58,7 @@
<service name="sendConfirmBod" engine="java" transaction-timeout="300"
location="org.ofbiz.oagis.OagisServices" invoke="sendConfirmBod" auth="false">
<description>Send ConfirmBod</description>
+ <attribute name="outputStream" type="java.io.OutputStream" mode="IN"/>
<attribute name="logicalId" type="String" mode="IN" optional="false"/>
<attribute name="component" type="String" mode="IN" optional="false"/>
<attribute name="task" type="String" mode="IN" optional="false"/>
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java?view=diff&rev=551498&r1=551497&r2=551498
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java Thu Jun 28 01:11:19 2007
@@ -72,7 +72,8 @@
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 @@
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");
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java?view=diff&rev=551498&r1=551497&r2=551498
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java Thu Jun 28 01:11:19 2007
@@ -192,7 +192,7 @@
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);
}