---
id: change/bcapps/12007
type: change
title: "#12007 [Main]-TDS Amount incorrectly calculated under Tax Information Factbox if you use Applies-to ID in the Indian version."
summary: Fixed incorrect TDS amount calculation when applying payments to purchase invoices via Applies-to ID in the Indian version. The system was deducting the gross payment amount instead of the TDS base, resulting in over-deducted TDS.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit tds tax configuration
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:13.688Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 00b0994f52d9f4ba0b4ade4affcac49005016c37
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12007
    title: "microsoft/BCApps#12007: [Main]-TDS Amount incorrectly calculated under Tax Information Factbox if you use Applies-to ID in the Indian version."
    date: "2026-09-30"
    commit: 00b0994f52d9f4ba0b4ade4affcac49005016c37
    t: null
    quote: Removed the erroneous expression so AppliedAmount retains the correctly summed TDS base
links:
  learn: []
  objects:
    - object/codeunit/18694-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12007
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12007
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-30T07:59:59Z"
author: v-maheshsharma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 6596
  deletions: 6625
  al: 1
apps:
  - INTDS
objects_touched:
  - key: codeunit/18694
    page: codeunit/18694-in
    type: codeunit
    id: 18694
    name: TDS Tax Configuration
    app: INTDS
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651717
systems:
  - finance
quote: Removed the erroneous expression so AppliedAmount retains the correctly summed TDS base
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #12007 [Main]-TDS Amount incorrectly calculated under Tax Information Factbox if you use Applies-to ID in the Indian version.

> Fixed incorrect TDS amount calculation when applying payments to purchase invoices via Applies-to ID in the Indian version. The system was deducting the gross payment amount instead of the TDS base, resulting in over-deducted TDS.

[Pull request](https://github.com/microsoft/BCApps/pull/12007) · merged into `main` (BC30) on 2026-09-30 by v-maheshsharma · 2 files (+6596 -6625), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Removed an expression in the Applies-to ID TDS use case that replaced the summed TDS base of applied payments with the gross Amount to Apply
- AppliedAmount now keeps the summed TDS base used for the taxable amount excluding applied amounts
- Use-case version raised from 5 to 6, and the registered version in TDS Tax Configuration updated so the corrected use case is re-imported
- TDS now comes out correctly for one or more applied payments
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 18694 "TDS Tax Configuration"](../../objects/codeunit/18694-in.md), INTDS (IN layer): modified

## Context

- Work items: AB#651717
- Labels: Team: Finance
- Systems: finance
- From the description: "Removed the erroneous expression so AppliedAmount retains the correctly summed TDS base"

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