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

Explode items not handling tax and adjustments properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 18.12, Release Branch 17.12, Trunk
    • 18.12.01
    • order
    • None

    Description

      Steps to re-generate:

      1) Create order with 4 qty of purple Gizmo and 3 qty of GZ-1000 - Tiny Gizmo
      2) Now change explode item to Y
      3) Again create same order with same products and same quantity
      4) Notice difference in item subtotal and grand total

      I see two issues here:

      • item subtotal is 191.93 and 191.94, this should be addressed 191.94 is correct when explode is set to N (default order)
        Code reference: It should be handled inside ShoppingCartItem.java#explodeItem
      • Total sales tax is different in both orders:
        10.72 and -0.03 which can be checked if this is any configuration issue, or taxes are not being handled while exploding items.

      Demo orders on trunk (will not last for long):
      explode: N
      [https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10001

      ]explode: Y
      https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10000

      Attachments

        1. image-2020-08-22-14-54-06-042.png
          67 kB
          Ankush Upadhyay
        2. OFBIZ-11928.patch
          1 kB
          Ankush Upadhyay

        Issue Links

          Activity

            People

              nmalin Nicolas Malin
              surajk Suraj Khurana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: