code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#14061 [MAIN] Fix TDS calculation on multi-line purchase invoices (Bug 659187)

Codeunit 18694 and TDS use-case configuration fixed to correctly calculate tax-deducted-at-source on multi-line purchase invoices by retaining untaxed amounts from earlier lines when the annual threshold is reached.

Pull request · merged into main (BC30) on 2026-11-15 by v-ajaztabrez · 2 files (+45 -11), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • TDS was calculated only on the later invoice line once the annual threshold was reached, leaving out earlier untaxed lines
  • Earlier untaxed amounts are now kept when the threshold is reached
  • Amounts already taxed under the per-contract rule stay excluded
  • Line-level TDS bases are preserved, and the use-case configuration moves from version 35 to 36
  • Applies to the Indian localization TDS app
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659187
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Retain earlier untaxed amounts when the annual threshold is reached, while excluding amounts already taxed under the per-contract rule.”

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

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