Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-223

CartShipInfo objects are not properly cloned when shopping cart items are exploded.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14.12.01, 12.04.06, 13.07.02
    • Component/s: order
    • Labels:
      None

      Description

      If in the ProductStore, the explodeOrderItems flag is set to Y, during order creation the shopping cart items are exploded: the process is done cloning the original order items (mostly using the the ShoppingCartItem costructor that takes as input a ShoppingCartItem object).
      The problem is that the CartShipInfo objects are not properly cloned when shopping cart items are exploded.
      So, when a cart item is cloned, ship info is not present in the cloned items (and reservation is not performed etc...).

      Not sure it is related but also the sales tax adjustements are not applied to the cloned cart items.

      1. OFBIZ-223.patch
        4 kB
        Arun Patidar

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment - - edited

        Backported in
        R13.07 r1647100
        R12.04 r1647101

        Show
        jacques.le.roux Jacques Le Roux added a comment - - edited Backported in R13.07 r1647100 R12.04 r1647101
        Hide
        toashishvijay Ashish Vijaywargiya added a comment -

        Thanks Jacopo for creating the issue. Thanks Arun for providing the patch for the same, your changes are committed in trunk at r1646977

        Show
        toashishvijay Ashish Vijaywargiya added a comment - Thanks Jacopo for creating the issue. Thanks Arun for providing the patch for the same, your changes are committed in trunk at r1646977
        Hide
        arunpati Arun Patidar added a comment -

        Attached is a patch to fix the issue of explode order items. I followed below steps to test:

        • Set productStore.explodeOrderItems = 'Y'
        • Place an order with item qty more than 1

        After placing order, we see that all items has been exploded and qty of each item set to 1.

        Show
        arunpati Arun Patidar added a comment - Attached is a patch to fix the issue of explode order items. I followed below steps to test: Set productStore.explodeOrderItems = 'Y' Place an order with item qty more than 1 After placing order, we see that all items has been exploded and qty of each item set to 1.

          People

          • Assignee:
            toashishvijay Ashish Vijaywargiya
            Reporter:
            jacopoc Jacopo Cappellato
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development