svn commit: r1071437 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

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

svn commit: r1071437 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

jaz-3
Author: jaz
Date: Wed Feb 16 23:11:11 2011
New Revision: 1071437

URL: http://svn.apache.org/viewvc?rev=1071437&view=rev
Log:
More saveUpdatedCartToOrder work; when deleting items, a few additional contraints need to be resolved as well

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

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=1071437&r1=1071436&r2=1071437&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java Wed Feb 16 23:11:11 2011
@@ -4038,6 +4038,11 @@ public class OrderServices {
             // flag to delete existing order items and adjustments          
             try {
                 toRemove.addAll(delegator.findByAnd("OrderItemShipGroupAssoc", "orderId", orderId));
+                toRemove.addAll(delegator.findByAnd("OrderItemContactMech", "orderId", orderId));
+                toRemove.addAll(delegator.findByAnd("OrderItemPriceInfo", "orderId", orderId));
+                toRemove.addAll(delegator.findByAnd("OrderItemAttribute", "orderId", orderId));
+                toRemove.addAll(delegator.findByAnd("OrderItemBilling", "orderId", orderId));
+                toRemove.addAll(delegator.findByAnd("OrderItemRole", "orderId", orderId));
                 toRemove.addAll(delegator.findByAnd("OrderItemChange", "orderId", orderId));
                 toRemove.addAll(delegator.findByAnd("OrderAdjustment", "orderId", orderId));
                 toRemove.addAll(delegator.findByAnd("OrderItem", "orderId", orderId));