Skip to content

Commit

Permalink
Fixed: Update an order linked to an other order lost relation applica…
Browse files Browse the repository at this point in the history
…tions/order/

(OFBIZ-10926)
When you edit an order linked to an other order like drop shipment process, shopping cart lost the connexion.
The problem came from ShoppingCart.makeAllOrderItemAssociations() function that prepared all generic value OrderItemAssoc without toOrderId.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857605 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Apr 15, 2019
1 parent a09a7f0 commit 4865cdc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4122,6 +4122,7 @@ public List<GenericValue> makeAllOrderItemAssociations() {
orderItemAssociation.set("orderId", commitment.getString("orderId"));
orderItemAssociation.set("orderItemSeqId", commitment.getString("orderItemSeqId"));
orderItemAssociation.set("shipGroupSeqId", "_NA_");
orderItemAssociation.set("toOrderId", this.getOrderId());
orderItemAssociation.set("toOrderItemSeqId", item.getOrderItemSeqId());
orderItemAssociation.set("toShipGroupSeqId", "_NA_");
orderItemAssociation.set("orderItemAssocTypeId", "PURCHASE_ORDER");
Expand All @@ -4136,6 +4137,7 @@ public List<GenericValue> makeAllOrderItemAssociations() {
orderItemAssociation.set("orderId", item.getAssociatedOrderId());
orderItemAssociation.set("orderItemSeqId", item.getAssociatedOrderItemSeqId());
orderItemAssociation.set("shipGroupSeqId", csi.getAssociatedShipGroupSeqId() != null ? csi.getAssociatedShipGroupSeqId() : "_NA_");
orderItemAssociation.set("toOrderId", this.getOrderId());
orderItemAssociation.set("toOrderItemSeqId", item.getOrderItemSeqId());
orderItemAssociation.set("toShipGroupSeqId", csi.getShipGroupSeqId() != null ? csi.getShipGroupSeqId() : "_NA_");
orderItemAssociation.set("orderItemAssocTypeId", item.getOrderItemAssocTypeId());
Expand Down

0 comments on commit 4865cdc

Please sign in to comment.