#10093 [Bug][SubscriptionBilling]: "Prices Including VAT" handling is incomplete — contract billing invoice treats VAT‑exclusive Subscription Line amounts as VAT‑inclusive
The Subscription Billing contract billing feature now correctly grosses up net prices to VAT-inclusive amounts when a customer or vendor uses prices including VAT, ensuring VAT calculations reconcile with the original order.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-28 by miljance (community contribution) · 2 files (+283 -6), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added a helper function to convert net prices to VAT-inclusive prices by applying the line’s VAT factor
- Applied the gross-up logic at all price-assignment sites for both sales (Unit Price) and purchase (Direct Unit Cost) paths
- Zero-VAT and full-VAT lines are excluded from the conversion logic
- Comprehensive test coverage added for VAT-inclusive and VAT-exclusive scenarios for both customer and vendor billing
- Change is gated on the document header’s Prices Including VAT flag and does not affect other documents
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8060 “Create Billing Documents”, Subscription Billing: modified
Context
- Fixes: #8642 [Bug][SubscriptionBilling]: “Prices Including VAT” handling is incomplete — contract billing invoice treats VAT‑exclusive Subscription Line amounts as VAT‑inclusive (closed)
- Work items: AB#648227
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
- From the description: “the contract invoice was created with the net (VAT-exclusive) amount placed onto a Prices Including VAT = YES document”
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).