---
id: change/bcapps/14575
type: change
title: "#14575 [Main][All-e]Sales Invoice created from Customer Subscription Contract adds VAT/GST on top of the Contract Amount if Customer has Prices Incl. VAT selected in version"
summary: Fixed a bug where sales invoices created from customer subscription contracts incorrectly added VAT on top of the contract amount when the customer had prices including VAT enabled. The fix ensures VAT conversion is only applied to subscriptions originating from sales orders, not manually entered contract prices.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create billing documents
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-12-02T01:05:54.515Z"
  flags: []
generated:
  at: "2026-12-05T00:13:03.967Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f274895cc35bdbaafd8177fc80b9617be501e639
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14575
    title: "microsoft/BCApps#14575: [Main][All-e]Sales Invoice created from Customer Subscription Contract adds VAT/GST on top of the Contract Amount if Customer has Prices Incl. VAT selected in version"
    date: "2026-12-01"
    commit: f274895cc35bdbaafd8177fc80b9617be501e639
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/8060
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/customer-contracts
      title: Customer subscription contracts
      label: possibly related
      why: Documents customer subscription contracts and billing information structure
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/contracts-services-mgmt
      title: Managing contracts, subscriptions, and subscription lines
      label: possibly related
      why: Documents subscription contracts with billing dates, amounts, and pricing
      by: model
number: 14575
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14575
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-01T03:58:46Z"
author: sanjmaurya
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 101
  deletions: 10
  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: []
work_items:
  - 660772
systems:
  - sales
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14575 [Main][All-e]Sales Invoice created from Customer Subscription Contract adds VAT/GST on top of the Contract Amount if Customer has Prices Incl. VAT selected in version

> Fixed a bug where sales invoices created from customer subscription contracts incorrectly added VAT on top of the contract amount when the customer had prices including VAT enabled. The fix ensures VAT conversion is only applied to subscriptions originating from sales orders, not manually entered contract prices.

[Pull request](https://github.com/microsoft/BCApps/pull/14575) · merged into `main` (BC30) on 2026-12-01 by sanjmaurya · 2 files (+101 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Invoices from manually entered subscription contracts now correctly treat VAT-inclusive prices as final amounts
- Sales-order-created subscriptions continue to convert net prices to VAT-inclusive as before
- The fix applies VAT conversion logic only when both Prices Including VAT is enabled and the subscription came from a sales order
- Addresses a regression that occurred between versions 28.5 and 29.1
- Test coverage expanded to verify correct VAT handling for both subscription types
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8060 "Create Billing Documents"](../../objects/codeunit/8060.md), Subscription Billing: modified

## Context

- Work items: AB#660772
- Labels: AL: Apps (W1), Team: Finance
- Systems: sales

## Possibly related

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

- [Customer subscription contracts](https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/customer-contracts) — possibly related: Documents customer subscription contracts and billing information structure (model-linked)
- [Managing contracts, subscriptions, and subscription lines](https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/contracts-services-mgmt) — possibly related: Documents subscription contracts with billing dates, amounts, and pricing (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).
