#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.
- 5files
- 4AL files
- 4objects
Pull request · 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”, ReverseChargeVAT (GB layer): modified
- Table 37 “Sales Line”, Base Application (GB layer): modified
- Codeunit 80 “Sales-Post”, Base Application (GB layer): modified
- Codeunit 265 “Feature Key Management”, Base Application: modified
Also merged into
- #13073 into
releases/29.xon 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 — possibly related: touches Codeunit 80 “Sales-Post”
- Snapshot debugging — possibly related: touches Codeunit 80 “Sales-Post”
- Set Up Reverse Charges on VAT [UK] — 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).