You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/08/10 10:15:08 UTC

svn commit: r564503 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java

Author: jacopoc
Date: Fri Aug 10 01:15:07 2007
New Revision: 564503

URL: http://svn.apache.org/viewvc?view=rev&rev=564503
Log:
Applied fix from David Shere OFBIZ-1190 for the wrong amount passed to the cart by the eBay import service.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java?view=diff&rev=564503&r1=564502&r2=564503
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/ImportOrdersFromEbay.java Fri Aug 10 01:15:07 2007
@@ -775,8 +775,7 @@
             
             Double unitPrice = new Double((String) parameters.get("transactionPrice"));
             double quantity = new Double((String) parameters.get("quantityPurchased")).doubleValue();
-            Double amount = new Double(quantity * unitPrice.doubleValue());
-            cart.addItemToEnd(productId, amount, quantity, unitPrice, null, null, null, "PRODUCT_ORDER_ITEM", dispatcher, Boolean.FALSE, Boolean.FALSE);
+            cart.addItemToEnd(productId, null, quantity, unitPrice, null, null, null, "PRODUCT_ORDER_ITEM", dispatcher, Boolean.FALSE, Boolean.FALSE);
            
             // set partyId from
             if (UtilValidate.isNotEmpty(payToPartyId)) {