---
id: change/bcapps/12474
type: change
title: "#12474 [Master]-Non-Deductible Reverse-Charge VAT Correction Is Posted to Purchase VAT Account Instead of Payment Discount Account."
summary: When posting non-deductible reverse-charge VAT corrections with payment discounts, the system now correctly retrieves the GL account from General Posting Setup instead of posting to the purchase VAT account.
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-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d9cccde50accf526b1c88f688c5e8ef09ebc5bd3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12474
    title: "microsoft/BCApps#12474: [Master]-Non-Deductible Reverse-Charge VAT Correction Is Posted to Purchase VAT Account Instead of Payment Discount Account."
    date: "2026-10-26"
    commit: d9cccde50accf526b1c88f688c5e8ef09ebc5bd3
    t: null
    quote: GL Account is now called from the General Posting Setup instead when Pmt Discount is Involved.
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
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/how-to-setup-and-post-reverse-charge
      title: Czech local functionality - Reverse charge in setup and posting
      label: possibly related
      why: Documents reverse charge VAT setup and posting in Czech version, directly related to non-deductible reverse-charge VAT posting.
      by: model
number: 12474
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12474
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-26T11:24:02Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 12
  additions: 161
  deletions: 18
  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:
  - 653327
systems:
  - finance
quote: GL Account is now called from the General Posting Setup instead when Pmt Discount is Involved.
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #12474 [Master]-Non-Deductible Reverse-Charge VAT Correction Is Posted to Purchase VAT Account Instead of Payment Discount Account.

> When posting non-deductible reverse-charge VAT corrections with payment discounts, the system now correctly retrieves the GL account from General Posting Setup instead of posting to the purchase VAT account.

[Pull request](https://github.com/microsoft/BCApps/pull/12474) · merged into `main` (BC30) on 2026-10-26 by neeleshsinghal · 12 files (+161 -18), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed GL account selection for non-deductible VAT corrections when payment discounts are involved
- GL account is now sourced from General Posting Setup configuration
- Prevents incorrect posting to purchase VAT account
- Affects multiple localizations including W1, BE, CH, ES, FI, FR, IT, NA, NO, RU, and APAC
- Includes updated test case for non-deductible VAT payment discount scenario
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#653327
- Labels: Team: Finance
- Systems: finance
- From the description: "GL Account is now called from the General Posting Setup instead when Pmt Discount is Involved."

## 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"
- [Czech local functionality - Reverse charge in setup and posting](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/how-to-setup-and-post-reverse-charge) — possibly related: Documents reverse charge VAT setup and posting in Czech version, directly related to non-deductible reverse-charge VAT posting. (model-linked)

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