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

#10798 [29x]-Mismatch between Purchase Invoice Total in Lines and Statistics after VAT adjustment

Fixed a mismatch between purchase invoice totals displayed on the lines subform and the statistics page when VAT amounts are manually adjusted with mixed VAT groups. The fix recalculates grouped VAT and synchronizes the subform totals.

Pull request · merged into releases/29.x (BC29) on 2026-09-14 by DeepsShukla (community contribution) · 4 files (+227 -1), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • VAT amounts on purchase invoice lines now correctly reflect manual adjustments made in the statistics page
  • Recalculation uses CalcVATAmountLines when VAT differences are detected on line items
  • Subform totals are overridden to ensure consistency with statistics calculations
  • Fix applies to BE, NA, and W1 layers
  • Test coverage added for document totals pages
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#648334
  • Labels: ADO: Sync, From Fork, Team: SCM
  • Systems: platform
  • From the description: “VAT Amount on the Purchase Invoice subform didn’t reflect manual VAT adjustments from Statistics when mixed VAT groups were used.”

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