Fixed bug where eBay itemId was set as order's externaId instead of transactionId; transactionId was also stored in the order but never used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@951099 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2010-06-03 18:24:45 +00:00
parent 7738dabb8c
commit ee4dbc2273
@@ -861,11 +861,10 @@ public class EbayOrderServices {
// retrieve transactionId
String transactionId = UtilXml.childElementValue(transactionElement, "TransactionID", "");
// set the externalId and transactionId
orderCtx.put("externalId", itemId);
orderCtx.put("transactionId", transactionId);
// set the externalId
orderCtx.put("externalId", transactionId);
GenericValue orderExist = externalOrderExists(delegator, itemId);
GenericValue orderExist = externalOrderExists(delegator, transactionId);
if (orderExist != null) {
orderCtx.put("orderId", (String) orderExist.get("orderId"));
} else {