---
id: change/bcapps/10513
type: change
title: "#10513 [Extensibility Request] issue 30270: expose JobPostLine before calculating totals"
summary: Sales invoice posting exposes a new event that provides access to the Job Post-Line instance before calculating totals, enabling extensions to interact with job data during the posting process.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sales post invoice
  - codeunit sales post invoice events
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:29.587Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0dbbd61eb23101a7019c6027cf038dd07a0d2058
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10513
    title: "microsoft/BCApps#10513: [Extensibility Request] issue 30270: expose JobPostLine before calculating totals"
    date: "2026-09-18"
    commit: 0dbbd61eb23101a7019c6027cf038dd07a0d2058
    t: null
    quote: Extensions need access to the active Job Post-Line instance while sales invoice posting still retains its prepared job data.
links:
  learn: []
  objects:
    - object/codeunit/815
    - object/codeunit/825
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10513
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10513
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-18T13:12:37Z"
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: 9
  additions: 45
  deletions: 1
  al: 9
apps:
  - Base Application
objects_touched:
  - key: codeunit/815
    page: codeunit/815
    type: codeunit
    id: 815
    name: Sales Post Invoice
    app: Base Application
    status: modified
  - key: codeunit/825
    page: codeunit/825
    type: codeunit
    id: 825
    name: Sales Post Invoice Events
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/RU/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647451
systems:
  - sales
quote: Extensions need access to the active Job Post-Line instance while sales invoice posting still retains its prepared job data.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10513 [Extensibility Request] issue 30270: expose JobPostLine before calculating totals

> Sales invoice posting exposes a new event that provides access to the Job Post-Line instance before calculating totals, enabling extensions to interact with job data during the posting process.

[Pull request](https://github.com/microsoft/BCApps/pull/10513) · merged into `main` (BC30) on 2026-09-18 by AleksandricMarko · 9 files (+45 -1), 9 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New event OnPostLinesOnBeforeCalcSums in Sales Post Invoice Events codeunit
- Event fires before TempInvoicePostingBuffer.CalcSums in the PostLines method
- Provides subscribers with posting context and active Job Post-Line instance
- Implemented across all localization layers (W1, APAC, BE, ES, FI, IT, NA, RU)
- Allows extensions to access job data without changing existing procedure signatures

## AL objects touched

- [Codeunit 815 "Sales Post Invoice"](../../objects/codeunit/815.md), Base Application: modified
- [Codeunit 825 "Sales Post Invoice Events"](../../objects/codeunit/825.md), Base Application: modified
- `src/Layers/BE/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/FI/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/RU/BaseApp/Sales/Posting/SalesPostInvoice.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#647451
- Labels: Team: SCM, event-request
- Systems: sales
- From the description: "Extensions need access to the active Job Post-Line instance while sales invoice posting still retains its prepared job data."

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