---
id: change/bcapps/9339
type: change
title: "#9339 [master][Gen. Jnl.-Post Line]` Add var NextEntryNo, var NextVATEntryNo, and var NextTransactionNo to OnAfterInitGLRegister in StartPosting"
summary: The OnAfterInitGLRegister event raised from StartPosting in codeunit Gen. Jnl.-Post Line now passes NextEntryNo, NextVATEntryNo and NextTransactionNo as var parameters, so subscribers can read and change them.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:39.374Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dbeafdb0c0dad723c2b6b785c158550c6816cd14
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9339
    title: "microsoft/BCApps#9339: [master][Gen. Jnl.-Post Line]` Add var NextEntryNo, var NextVATEntryNo, and var NextTransactionNo to OnAfterInitGLRegister in StartPosting"
    date: "2026-07-15"
    commit: dbeafdb0c0dad723c2b6b785c158550c6816cd14
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9339
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9339
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-15T10:03:29Z"
author: AndreasHans
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 11
  additions: 22
  deletions: 22
  al: 11
apps:
  - Base Application
objects_touched:
  - key: codeunit/12
    page: codeunit/12
    type: codeunit
    id: 12
    name: Gen. Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 639006
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9339 [master][Gen. Jnl.-Post Line]` Add var NextEntryNo, var NextVATEntryNo, and var NextTransactionNo to OnAfterInitGLRegister in StartPosting

> The OnAfterInitGLRegister event raised from StartPosting in codeunit Gen. Jnl.-Post Line now passes NextEntryNo, NextVATEntryNo and NextTransactionNo as var parameters, so subscribers can read and change them.

[Pull request](https://github.com/microsoft/BCApps/pull/9339) · merged into `main` (BC30) on 2026-07-15 by AndreasHans · 11 files (+22 -22), 11 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- OnAfterInitGLRegister in StartPosting gains var NextEntryNo, NextVATEntryNo and NextTransactionNo
- Applied to Gen. Jnl.-Post Line in W1 and all localized layers
- Existing subscribers keep working; new subscribers can use the extra parameters

## AL objects touched

- [Codeunit 12 "Gen. Jnl.-Post Line"](../../objects/codeunit/12.md), Base Application: modified

## Context

- Work items: AB#639006
- Systems: finance

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