From fceca8b83c715c845e4f1565e69e7a39596a8bec Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Thu, 1 Oct 2009 13:25:45 +0000 Subject: [PATCH] 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 --- ebay/src/org/ofbiz/ebay/ImportOrdersFromEbay.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ebay/src/org/ofbiz/ebay/ImportOrdersFromEbay.java b/ebay/src/org/ofbiz/ebay/ImportOrdersFromEbay.java index 816d1a8fc..4ec46225f 100755 --- a/ebay/src/org/ofbiz/ebay/ImportOrdersFromEbay.java +++ b/ebay/src/org/ofbiz/ebay/ImportOrdersFromEbay.java @@ -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) {