Minor clean ups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@551498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -58,6 +58,7 @@ under the License.
|
||||
<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"/>
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user