#9084 Bug 640321: Blanket Purch. Order to Order drops extended text for later items
Fixes a bug where extended text lines are dropped when converting blanket purchase orders to regular orders if parent items end up on different line numbers. The fix remaps attached line references before insertion.
- 6files
- 3AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-09 by alexei-dobriansky · 6 files (+357 -0), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Extended text lines were being skipped during blanket-to-order conversion when parent items moved to different line numbers
- Added RemapAttachedToLineNo function to rewrite line number references before insertion checks
- Solution mirrors an existing fix on the sales side
- Includes test coverage for the scenario
- Changes propagated across IT, NA, and W1 layers
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 97 “Blanket Purch. Order to Order”, Base Application: modified
src/Layers/NA/BaseApp/Purchases/Document/BlanketPurchOrdertoOrder.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#640321
- Labels: Team: SCM
- Systems: purchasing
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Work with blanket sales orders or purchase orders — possibly related: Blanket purchase orders are the subject; extended text feature is mentioned in L1 but L3 directly documents blanket orders. (model-linked)
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).