---
id: change/bcapps/10214
type: change
title: '#10214 [Main]Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page'
summary: Fixed a posting error that occurred when posting purchase documents with 50% non-deductible VAT in a foreign currency while source currency consistency checking was enabled. The source currency VAT amount for deductible VAT entries now correctly excludes the non-deductible portion.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:51.429Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 37f845fe0842eed644bb4a8567d51726060266b9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10214
    title: 'microsoft/BCApps#10214: [Main]Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page'
    date: "2026-08-21"
    commit: 37f845fe0842eed644bb4a8567d51726060266b9
    t: null
    quote: Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10214
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10214
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-21T19:35:14Z"
author: sanjmaurya
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 13
  additions: 185
  deletions: 11
  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:
  - 646637
systems:
  - finance
quote: Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10214 [Main]Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page

> Fixed a posting error that occurred when posting purchase documents with 50% non-deductible VAT in a foreign currency while source currency consistency checking was enabled. The source currency VAT amount for deductible VAT entries now correctly excludes the non-deductible portion.

[Pull request](https://github.com/microsoft/BCApps/pull/10214) · merged into `main` (BC30) on 2026-08-21 by sanjmaurya (community contribution) · 13 files (+185 -11), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Posting with partial non-deductible VAT in a foreign currency now succeeds when Check Source Curr. Consistency is enabled
- The source currency VAT amount on the deductible VAT G/L entry now leaves out the non-deductible portion
- Fixes unbalanced G/L source currency totals that caused the consistency validation error
- Gen. Jnl.-Post Line changed in the W1, APAC, BE, CH, ES, FI, FR, IT, NA, NO and RU layers
- Tests added in the W1 and APAC layers
- 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#646637
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: finance
- From the description: "Posting Error with 50% Non-Deductible VAT when "Check Source Currency Consistency" is enabled in "General Ledger Setup" page"

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