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

Unnecessary iterations for all productFacilities in setLastInventoryCount

    XMLWordPrintableJSON

Details

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

    Description

      In the service setLastInventoryCount, which updates lastInventoryCount for product facility records, it works on inventoryItemDetail changes on availableToPromiseDiff.

      In parameter: InventoryItemId

      So it should be updating productFacilities entertaining both productId and facilityId of same inventoryItemId.

      Currently, it it unnecessary updating all the facilities inventory on a single inventory item update.

      It can be major performance factor on a production system working highly on inventory updates.

      Attachments

        1. OFBIZ-11796.patch
          2 kB
          Suraj Khurana

        Activity

          People

            surajk Suraj Khurana
            surajk Suraj Khurana
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: