code change · fixWarehouseofficial - Microsoftreviewed - checked by Opus

#10522 [main] Bug 647499 Bin Replenishment with Pick by FEFO Creates Incorrect Inventory Movements

Fixed bin replenishment with FEFO-based picking to correctly calculate quantities and clear processed worksheet lines in basic warehouse locations.

Pull request · merged into main (BC30) on 2026-08-27 by MSNehaNawal · 2 files (+162 -3), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • FEFO inventory movements now exclude the destination bin when calculating available quantity to pick, ensuring correct lot selection and full quantity fulfillment
  • Handled warehouse activity buffers for FEFO movements are now recorded with blank From Bin to match worksheet lines and enable proper deletion of processed lines
  • Prevents incorrect inventory movements and unprocessed worksheet lines that occurred when the earliest FEFO lot was already in the replenishment bin
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#647499
  • Labels: Team: SCM
  • Systems: warehouse
  • From the description: “Bin Replenishment with Pick by FEFO Creates Incorrect Inventory Movements and Leaves Movement Worksheet Lines Unprocessed”

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).