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

Unnecessary iterations for all productFacilities in setLastInventoryCount

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 18.12, Release Branch 17.12, Trunk
    • Fix Version/s: 18.12.01, 17.12.04
    • Component/s: product
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: