#9446 [Extensibility Request] issue 30216: add OnPostItemJnlLineJobConsumptionOnBeforePrepareJobLine event in codeunit 90 Purch.-Post
A new integration event `OnPostItemJnlLineJobConsumptionOnBeforePrepareJobLine` is added to codeunit 90 Purch.-Post, allowing extensions to modify the quantity to invoice and optionally bypass standard job line preparation during purchase posting.
- 10files
- 10AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-30 by AleksandricMarko · 10 files (+90 -10), 10 AL · feature · tier official · reviewed (checked by Opus)
What changed
- New
IsHandledintegration event fires inPostItemJnlLineJobConsumptionafter quantity is set but before job line preparation - Extensions can adjust
PurchLine."Qty. to Invoice"and skip the standardInvoicePostingInterface.PrepareJobLinecall - Event added to W1 base layer and propagated to all country-specific layers
- Addresses extensibility gap where existing events fire too early or after quantity is already consumed
- Enables custom job consumption logic based on extension fields
AL objects touched
- Codeunit 90 “Purch.-Post”, Base Application: modified
Context
- Work items: AB#641618
- Labels: Team: SCM, event-request
- Systems: purchasing
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).