---
id: change/bcapps/13216
type: change
title: "#13216 Fix VAT adjustment register"
summary: Fixes how the VAT adjustment register is handled when posting through the Gen. Jnl.-Post Line codeunit, with a one-line change in each localization layer. New tests were added to the W1 and CZ ERMPmtDiscAndVATCustVend test codeunits.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-28T10:56:13.846Z"
  flags: []
generated:
  at: "2026-10-28T08:47:18.430Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 672c95bb3bf830849d5281b4fd2651f7ba404685
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13216
    title: "microsoft/BCApps#13216: Fix VAT adjustment register"
    date: "2026-10-26"
    commit: 672c95bb3bf830849d5281b4fd2651f7ba404685
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/design-details-general-journal-post-line-overview
      title: General Journal Post Line Overview
      label: possibly related
      why: touches Codeunit 12 "Gen. Jnl.-Post Line"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/types-of-events-for-extensibility
      title: Types of events for extensibility
      label: possibly related
      why: touches Codeunit 12 "Gen. Jnl.-Post Line"
      by: code
number: 13216
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13216
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-26T13:25:21Z"
author: Alexander-Ya
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 13
  additions: 241
  deletions: 0
  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:
  - number: 13265
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13265
fixes_issues: []
work_items:
  - 656039
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #13216 Fix VAT adjustment register

> Fixes how the VAT adjustment register is handled when posting through the Gen. Jnl.-Post Line codeunit, with a one-line change in each localization layer. New tests were added to the W1 and CZ ERMPmtDiscAndVATCustVend test codeunits.

[Pull request](https://github.com/microsoft/BCApps/pull/13216) · merged into `main` (BC30) on 2026-10-26 by Alexander-Ya · 13 files (+241 -0), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- One-line fix in Gen. Jnl.-Post Line for the VAT adjustment register
- Applied in the W1, APAC, BE, CH, ES, FI, FR, IT, NA, NO and RU layers
- Tests added in the W1 and CZ test layers
- Behaviour changes for users or extensions.

## AL objects touched

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

## Also merged into

- [#13265](https://github.com/microsoft/BCApps/pull/13265) into `releases/29.x` on 2026-10-27

## Context

- Work items: AB#656039
- Labels: Team: Finance
- Systems: finance

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [General Journal Post Line Overview](https://learn.microsoft.com/dynamics365/business-central/design-details-general-journal-post-line-overview) — possibly related: touches Codeunit 12 "Gen. Jnl.-Post Line"
- [Types of events for extensibility](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/types-of-events-for-extensibility) — possibly related: touches Codeunit 12 "Gen. Jnl.-Post Line"

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