code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#11135 Fix dimensions not populated by "Get Order Lines" on Purchase Invoices

The 'Get Order Lines' function on purchase invoices now copies dimension sets from order lines, fixing a bug where dimensions were reset to defaults during line validation.

Pull request · merged into main (BC30) on 2026-09-08 by VolodySyn · 2 files (+56 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Get Order Lines now keeps the purchase order line’s dimensions on the new invoice lines
  • GetPurchaseOrderLines now validates the Dimension Set ID from the order line onto the invoice line
  • Before the fix, validating the No. field reset dimensions to item or account defaults
  • Added test GetOrderLinesCopiesDimensionsToInvoiceLine
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #11146 into releases/29.x on 2026-09-08

Context

  • Work items: AB#643374
  • Labels: Team: SCM
  • Systems: inventory
  • From the description: “Get Order Lines created invoice lines without the order line’s dimensions”

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