#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.
- 4files
- 3AL files
- 1objects
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
- Codeunit 57 “Document Totals”, Base Application: modified
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.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Check amounts on purchase invoices and credit memos — possibly related: Fixes purchase invoice total validation between lines and statistics after VAT adjustment. (model-linked)
- Set up validation of purchase amounts — possibly related: Validates purchase invoice amounts and resolves mismatches in document totals. (model-linked)
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).