svn commit: r814674 - /ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r814674 - /ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java

ashish-18
Author: ashish
Date: Mon Sep 14 14:58:10 2009
New Revision: 814674

URL: http://svn.apache.org/viewvc?rev=814674&view=rev
Log:
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"));