code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#9968 [BC-IN] TDS Amount Not Calculated on Initial TDS Section Selection in Bank Payment Voucher

TDS/GST/TCS taxes are now calculated on first entry of tax fields in Indian journal and voucher pages. The fix restores record saving before tax calculation and adds an event for advanced customization.

Pull request · merged into main (BC30) on 2026-08-12 by v-maheshsharma (community contribution) · 32 files (+197 -0), 32 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • TDS/GST/TCS amount now calculates correctly when tax section code or related fields are entered initially
  • Restored CurrPage.SaveRecord() call in tax calculation flow across 31 India journal and voucher page extensions
  • Added integration event OnBeforeUpdateTaxAmountOnGenJnlLine to codeunit Calculate Tax for extensibility
  • Event allows subscribers to override save and tax calculation logic, useful for environments with complex approval workflows
  • Fixes regression from earlier commit that removed the save call, which caused zero tax on first pass
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#645153
  • Labels: ADO: Sync, From Fork, Team: Finance
  • Systems: finance, fixed-assets

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