code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#9797 Bug 641388: Fix WIP transfer remainder over-creation when open line quantity is reduced

Fixed a bug in the Create Transfer Order to Subcontractor report where reducing an open WIP transfer line quantity caused incorrect duplicate lines to be created instead of properly tracking the remainder.

Pull request · merged into main (BC30) on 2026-07-31 by ChethanT · 2 files (+20 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Corrected quantity calculation for open WIP transfer lines by using Quantity field instead of the zero-valued Quantity (Base) field
  • Implemented proper conversion to base unit of measure using the same factor applied elsewhere in the report
  • Re-enabled the previously disabled regression test WIPTransferRemainderCreatedWhenOpenLineQuantityReduced which now passes
  • Validated all 19 tests in the Subc. WIP Trans. Create Test suite with no regressions
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#641388
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: manufacturing

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).