---
id: change/bcapps/12813
type: change
title: "#12813 [GB] Fix reverse charge VAT sales posting"
summary: GB reverse-charge VAT sales posting now correctly handles zero-quantity lines and uses line-based applicability checks instead of header-copied state, with legacy item validation isolated behind the feature flag.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit reverse charge vat subscribers
  - table sales line
  - codeunit sales-post
  - codeunit feature key management
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-21T00:48:36.872Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 07afb3eee3ab9f09678fb1ce6c22d5364df137ce
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12813
    title: "microsoft/BCApps#12813: [GB] Fix reverse charge VAT sales posting"
    date: "2026-10-20"
    commit: 07afb3eee3ab9f09678fb1ce6c22d5364df137ce
    t: null
    quote: Sales posting still validates legacy item flags, preventing items configured only for GB reverse charge from posting.
links:
  learn: []
  objects:
    - object/codeunit/10552-gb
    - object/table/37
    - object/codeunit/80
    - object/codeunit/265
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/design-details-item-tracking-posting-structure
      title: Design details - Item tracking posting structure
      label: possibly related
      why: touches Codeunit 80 "Sales-Post"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-snapshot-debugging
      title: Snapshot debugging
      label: possibly related
      why: touches Codeunit 80 "Sales-Post"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/UnitedKingdom/how-to-set-up-reverse-charges-on-vat
      title: Set Up Reverse Charges on VAT [UK]
      label: possibly related
      why: Fix for reverse charge VAT sales posting in GB version directly documented in reverse charge VAT setup guidance.
      by: model
number: 12813
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12813
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-20T21:22:15Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 417
  deletions: 17
  al: 4
apps:
  - Base Application
  - ReverseChargeVAT
objects_touched:
  - key: codeunit/10552
    page: codeunit/10552-gb
    type: codeunit
    id: 10552
    name: Reverse Charge VAT Subscribers
    app: ReverseChargeVAT
    status: modified
  - key: table/37
    page: table/37
    type: table
    id: 37
    name: Sales Line
    app: Base Application
    status: modified
  - key: codeunit/80
    page: codeunit/80
    type: codeunit
    id: 80
    name: Sales-Post
    app: Base Application
    status: modified
  - key: codeunit/265
    page: codeunit/265
    type: codeunit
    id: 265
    name: Feature Key Management
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13073
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13073
fixes_issues: []
work_items:
  - 654053
systems:
  - sales
  - administration
  - finance
quote: Sales posting still validates legacy item flags, preventing items configured only for GB reverse charge from posting.
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12813 [GB] Fix reverse charge VAT sales posting

> GB reverse-charge VAT sales posting now correctly handles zero-quantity lines and uses line-based applicability checks instead of header-copied state, with legacy item validation isolated behind the feature flag.

[Pull request](https://github.com/microsoft/BCApps/pull/12813) · merged into `main` (BC30) on 2026-10-20 by ventselartur · 5 files (+417 -17), 4 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed reverse-charge calculation to skip zero-quantity sales lines during posting
- Changed applicability checks to read from the sales line's posting state rather than a copied header
- Isolated legacy item flag validation behind the reverse-charge feature status to preserve backward compatibility
- Added eight regression test scenarios covering feature states, conflicting setups, partial invoicing, thresholds, and edge cases
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 10552 "Reverse Charge VAT Subscribers"](../../objects/codeunit/10552-gb.md), ReverseChargeVAT (GB layer): modified
- [Table 37 "Sales Line"](../../objects/table/37.md), Base Application (GB layer): modified
- [Codeunit 80 "Sales-Post"](../../objects/codeunit/80.md), Base Application (GB layer): modified
- [Codeunit 265 "Feature Key Management"](../../objects/codeunit/265.md), Base Application: modified

## Also merged into

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

## Context

- Work items: AB#654053
- Labels: Ownership: Needs Review, Team: Other
- Systems: sales, administration, finance
- From the description: "Sales posting still validates legacy item flags, preventing items configured only for GB reverse charge from posting."

## Possibly related

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

- [Design details - Item tracking posting structure](https://learn.microsoft.com/dynamics365/business-central/design-details-item-tracking-posting-structure) — possibly related: touches Codeunit 80 "Sales-Post"
- [Snapshot debugging](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-snapshot-debugging) — possibly related: touches Codeunit 80 "Sales-Post"
- [Set Up Reverse Charges on VAT \[UK\]](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/UnitedKingdom/how-to-set-up-reverse-charges-on-vat) — possibly related: Fix for reverse charge VAT sales posting in GB version directly documented in reverse charge VAT setup guidance. (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).
