Fix to allow for the status change in eBay also when we have the itemId but no transactionId.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@820650 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2009-10-01 13:25:45 +00:00
parent 95f6859b90
commit fceca8b83c
@@ -254,8 +254,8 @@ public class ImportOrdersFromEbay {
String shipped = (String)context.get("shipped");
try {
if (itemId == null || transactionId == null) {
Debug.logError("Cannot be retrieve itemId and transactionId from externalId", module);
if (itemId == null && transactionId == null) {
Debug.logError("Cannot retrieve itemId and transactionId from externalId", module);
return ServiceUtil.returnFailure(UtilProperties.getMessage(resource, "ordersImportFromEbay.errorDuringBuildItemAndTransactionIdFromExternalId", locale));
}
@@ -292,7 +292,7 @@ public class ImportOrdersFromEbay {
UtilXml.addChildElementValue(transElem, "Shipped", shipped, transDoc);
}
UtilXml.addChildElementValue(transElem, "TransactionID", transactionId, transDoc);
UtilXml.addChildElementValue(transElem, "TransactionID", (transactionId==null? "0": transactionId), transDoc);
dataItemsXml.append(UtilXml.writeXmlDocument(transDoc));
} catch (Exception e) {