code change · featurePurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

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

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 IsHandled integration event fires in PostItemJnlLineJobConsumption after quantity is set but before job line preparation
  • Extensions can adjust PurchLine."Qty. to Invoice" and skip the standard InvoicePostingInterface.PrepareJobLine call
  • 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

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