[ https://issues.apache.org/jira/browse/OFBIZ-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13849440#comment-13849440 ]
Christian Carlow commented on OFBIZ-5427: ----------------------------------------- Line 575 of ShoppingCartServices.java is the cause of this bug: if (cartShipGroupIndex > 0) { cart.positionItemToGroup(itemIndex, shipGroupQty, 0, cartShipGroupIndex, } Commenting the call to positionItemToGroup() prevents the tax adjustments and inventory associations from being removed for ship group 1. Does anyone know why the function is necessary? > Tax adjustments and inventory association for first ship group removed from > existing items when item added to order with more than one ship group > ------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-5427 > URL: https://issues.apache.org/jira/browse/OFBIZ-5427 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Christian Carlow > > Adding a new order item to an order with more than one ship group causes the > first ship group tax adjustments of existing order items to be removed. The > inventory association for the first ship group of existing order items is > also removed > To reproduce: > 1. Create an order for DemoCustCompany > 2. Add GZ-1000 and GZ-1001 with a quantity of 6 > 3. Click "Finalize Order" > 4. Add two more ship groups > 5. Assign a quantity of 2 to the second ship group and 3 with the third ship > group for GZ-1000 and GZ-1001 > 6. Finalize and complete the order. Review the order items and notice that > there are three sets of sales tax adjustments applied to GZ-1000 and GZ-1001 > and that the Ordered and Ship Request quantities are set to 6. > 7. Click "Edit Items" on the order view page > 8. Add GZ-1004 with a quantity of 1 to the order for ship group 00002. > After performing this step, review the order items again and notice that the > tax adjustments that previously existed for ship group one for GZ-1000 and > GZ-1001 are now missing and the Ship Request quantity is now set to 5. > Once step 8 is complete -- This message was sent by Atlassian JIRA (v6.1.4#6159)