code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#10736 [Main]- Mismatch between Purchase Invoice Total in Lines and Statistics after VAT adjustment

Purchase invoice line totals now correctly reflect manual VAT adjustments from the statistics page when using mixed VAT groups, fixing a mismatch issue by recalculating grouped VAT amounts.

Pull request · merged into main (BC30) on 2026-08-31 by DeepsShukla · 4 files (+227 -1), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • VAT amount on the purchase invoice subform now reflects manual VAT adjustments made on the Statistics page
  • Grouped VAT is recalculated with CalcVATAmountLines only when lines carry a VAT Difference
  • Subform totals are overridden to match the statistics when mixed VAT groups are used
  • Document Totals codeunit changed in the W1, NA and BE layers
  • Test added in DocumentTotalsPages
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#642172
  • Labels: Ownership: Manual, Team: Finance
  • Systems: platform
  • From the description: “Mismatch between Purchase Invoice Total in Lines and Statistics after VAT adjustment”

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