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

Stock Move is not working correctly when reservation record has quantity not available value at bulk location.

    XMLWordPrintableJSON

Details

    Description

      The problem will occur when we do stock move on reservation that have quantityNotAvailable value. A reservation with quantity was left in the original inventory item, but the Inventory Item had no Quantity on Hand.

      This issue is also reported in OFBIZ-3178.

      Here is the steps that I used to reproduce the bug.

      After reservation at bulk location when 20 item backordered, inventory record was-

      Bulk location inventory item

      inventoryItemId : 10004
      quantityOnHandTotal: 50
      availableToProm : -20

      OrderItemShipGrpInvRes -Reservation record at bulk location.

      inventoryItemId : 10004
      quantity: 70
      quantityNotAvailable : 20

      After stock move -

      Bulk location inventory item

      inventoryItemId : 10004
      quantityOnHandTotal: 0
      availableToProm : 0

      Pick/Primary location inventory item
      inventoryItemId : 10005
      quantityOnHandTotal: 50
      availableToProm : -20

      Here everything seems to be working fine with Inventory Item.

      OrderItemShipGrpInvRes- Reservation record at bulk location

      inventoryItemId : 10004
      quantity: 50
      quantityNotAvailable : 0

      OrderItemShipGrpInvRes-Reservation record at pick location

      inventoryItemId : 10005
      quantity: 70
      quantityNotAvailable : 20

      Here OrderItemShipGrpInvRes- Reservation record at bulk location should be removed after stock move.

      Due to this bug, total reserved quantity of order was changed. For example here-

      After stock move, total reserved quantity - 70 + 50 = 120. After deducting quantityNotAvailable, the order reserved quantity calculated was 100 while ordered was 70.

      I am attaching the modified patch of OFBIZ-3178 for Release-10.04,11.04, 12.04 and trunk. Please review it and do the needful.

      Attachments

        1. OFBIZ-5063.patch
          7 kB
          Amardeep Singh Jhajj

        Issue Links

          Activity

            People

              anilpatel Anil K Patel
              amardeepsj Amardeep Singh Jhajj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: