---
id: change/bcquality/203
type: change
title: "#203 knowledge(data-modeling): Prices Including VAT decides the basis of sales/purchase/service line amounts"
summary: A knowledge article clarifies how the Prices Including VAT header flag affects the basis of line amount fields in sales, purchase, and service documents, distinguishing fields that follow the flag from those with fixed net or gross basis.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:45.616Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a2685b9c8608717199dea9b40e7d8df1a3a54315
evidence:
  - kind: code
    url: https://github.com/microsoft/BCQuality/pull/203
    title: "microsoft/BCQuality#203: knowledge(data-modeling): Prices Including VAT decides the basis of sales/purchase/service line amounts"
    date: "2026-10-02"
    commit: a2685b9c8608717199dea9b40e7d8df1a3a54315
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 203
repo: microsoft/BCQuality
source_id: bcquality-prs
url: https://github.com/microsoft/BCQuality/pull/203
kind: pr
base_branch: main
major: null
merged_at: "2026-10-02T07:51:34Z"
author: pri-kise
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 5
  additions: 139
  deletions: 3
  al: 4
apps: []
objects_touched: []
objects_unjoined:
  - path: microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.bad.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.good.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.md
    status: added
    reason: not-in-snapshot
  - path: microsoft/skills/review/al-data-modeling-review.md
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 151
work_items: []
systems:
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #203 knowledge(data-modeling): Prices Including VAT decides the basis of sales/purchase/service line amounts

> A knowledge article clarifies how the Prices Including VAT header flag affects the basis of line amount fields in sales, purchase, and service documents, distinguishing fields that follow the flag from those with fixed net or gross basis.

[Pull request](https://github.com/microsoft/BCQuality/pull/203) · merged into `main` on 2026-10-02 by pri-kise · 5 files (+139 -3), 4 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Identifies which line amount fields follow the Prices Including VAT header flag and which have fixed net or gross basis
- Explains that Unit Price, Direct Unit Cost, and Line Amount are affected by the header flag, while Amount and Amount Including VAT always have fixed bases
- Highlights a misleading function name CalculateOutstandingAmountExclTax that is based on Line Amount and includes VAT when Prices Including VAT is enabled
- Warns against reconverting prices from Price List lines since they are already converted to the document's setting
- Includes good and bad code examples and is registered in the review skill

## AL objects touched

- `microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.bad.al`: added, not in the BC? snapshot yet
- `microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.good.al`: added, not in the BC? snapshot yet
- `microsoft/knowledge/data-modeling/document-line-prices-follow-prices-including-vat.md`: added, not in the BC? snapshot yet
- `microsoft/skills/review/al-data-modeling-review.md`: modified, not in the BC? snapshot

## Context

- Fixes: [#151 Knowledge - Prices Incl. Vat and Influence on the content of price/amount fields](https://github.com/microsoft/BCQuality/issues/151) (closed)
- Systems: development

Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
