---
id: change/bcapps/9446
type: change
title: "#9446 [Extensibility Request] issue 30216: add OnPostItemJnlLineJobConsumptionOnBeforePrepareJobLine event in codeunit 90 Purch.-Post"
summary: 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.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit purch.-post
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:51.183Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e72a8e3d2d5f8c4464bcce3b7fa268fb86627956
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9446
    title: "microsoft/BCApps#9446: [Extensibility Request] issue 30216: add OnPostItemJnlLineJobConsumptionOnBeforePrepareJobLine event in codeunit 90 Purch.-Post"
    date: "2026-07-30"
    commit: e72a8e3d2d5f8c4464bcce3b7fa268fb86627956
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/90
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9446
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9446
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-30T10:49:09Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 10
  additions: 90
  deletions: 10
  al: 10
apps:
  - Base Application
objects_touched:
  - key: codeunit/90
    page: codeunit/90
    type: codeunit
    id: 90
    name: Purch.-Post
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641618
systems:
  - purchasing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #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](https://github.com/microsoft/BCApps/pull/9446) · 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

- [Codeunit 90 "Purch.-Post"](../../objects/codeunit/90.md), 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).
