Author: ashish
Date: Mon Sep 14 14:58:10 2009
New Revision: 814674
URL:
http://svn.apache.org/viewvc?rev=814674&view=revLog:
Minor fix - This was slipped from my mind in previous commit in eBay.
This will help to ignore already imported orders in the system.
Modified:
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java
Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java?rev=814674&r1=814673&r2=814674&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java Mon Sep 14 14:58:10 2009
@@ -295,6 +295,9 @@
Map<String, Object> orderCtx = FastMap.newInstance();
Element ordersElement = (Element) ordersElemIter.next();
String externalOrderId = UtilXml.childElementValue(ordersElement, "OrderID");
+ if (externalOrderExists(delegator, externalOrderId) != null) {
+ continue;
+ }
orderCtx.put("externalId", externalOrderId);
orderCtx.put("amountPaid", UtilXml.childElementValue(ordersElement, "Total", "0"));
orderCtx.put("createdDate", UtilXml.childElementValue(ordersElement, "CreatedTime"));