---
id: change/bcapps/9746
type: change
title: "#9746 [main] bug 644148 - Use VAT base amount (after discounts) for reverse charge limit check"
summary: Reverse Charge VAT commodity limit check for Czech invoices now evaluates the amount after discounts (VAT base) instead of the gross unit price amount to align with Czech GFR regulation.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sales posting handler czl
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:10:11.413Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9900a198098549ac4c255eb8a4fb225930bdf501
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9746
    title: "microsoft/BCApps#9746: [main] bug 644148 - Use VAT base amount (after discounts) for reverse charge limit check"
    date: "2026-08-06"
    commit: 9900a198098549ac4c255eb8a4fb225930bdf501
    t: null
    quote: The decisive amount should be the total VAT base stated on the tax document, i.e. the amount after line discounts and invoice discounts.
links:
  learn: []
  objects:
    - object/codeunit/31038-cz
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9746
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9746
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-06T13:47:17Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 146
  deletions: 15
  al: 1
apps:
  - CoreLocalizationPack
objects_touched:
  - key: codeunit/31038
    page: codeunit/31038-cz
    type: codeunit
    id: 31038
    name: Sales Posting Handler CZL
    app: CoreLocalizationPack
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 644148
systems:
  - sales
quote: The decisive amount should be the total VAT base stated on the tax document, i.e. the amount after line discounts and invoice discounts.
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9746 [main] bug 644148 - Use VAT base amount (after discounts) for reverse charge limit check

> Reverse Charge VAT commodity limit check for Czech invoices now evaluates the amount after discounts (VAT base) instead of the gross unit price amount to align with Czech GFR regulation.

[Pull request](https://github.com/microsoft/BCApps/pull/9746) · merged into `main` (BC30) on 2026-08-06 by DavidHolusa · 2 files (+146 -15), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Limit calculation changed from gross unit price × quantity to line amount after discounts
- Affects Czech Reverse Charge VAT determination on sales invoices with line or invoice discounts
- Invoices where gross exceeds limit but net falls below it now correctly use Normal VAT
- Test coverage added for scenarios above and below limit after discount application
- Regulatory compliance fix for Czech tax requirements
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 31038 "Sales Posting Handler CZL"](../../objects/codeunit/31038-cz.md), CoreLocalizationPack (CZ layer): modified

## Context

- Work items: AB#644148
- Labels: Team: SCM
- Systems: sales
- From the description: "The decisive amount should be the total VAT base stated on the tax document, i.e. the amount after line discounts and invoice discounts."

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