---
id: change/bcapps/10093
type: change
title: '#10093 [Bug][SubscriptionBilling]: "Prices Including VAT" handling is incomplete — contract billing invoice treats VAT‑exclusive Subscription Line amounts as VAT‑inclusive'
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create billing documents
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:03.881Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f2743e3fa563471be1f587651773b4cec9f3bedb
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10093
    title: 'microsoft/BCApps#10093: [Bug][SubscriptionBilling]: "Prices Including VAT" handling is incomplete — contract billing invoice treats VAT‑exclusive Subscription Line amounts as VAT‑inclusive'
    date: "2026-08-28"
    commit: f2743e3fa563471be1f587651773b4cec9f3bedb
    t: null
    quote: the contract invoice was created with the net (VAT-exclusive) amount placed onto a Prices Including VAT = YES document
links:
  learn: []
  objects:
    - object/codeunit/8060
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10093
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10093
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-28T22:48:09Z"
author: miljance
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 283
  deletions: 6
  al: 1
apps:
  - Subscription Billing
objects_touched:
  - key: codeunit/8060
    page: codeunit/8060
    type: codeunit
    id: 8060
    name: Create Billing Documents
    app: Subscription Billing
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 8642
work_items:
  - 648227
systems:
  - development
quote: the contract invoice was created with the net (VAT-exclusive) amount placed onto a Prices Including VAT = YES document
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

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

[Pull request](https://github.com/microsoft/BCApps/pull/10093) · 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"](../../objects/codeunit/8060.md), 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](https://github.com/microsoft/BCApps/issues/8642) (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).
