#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.
- 4files
- 3AL files
- 1objects
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
- Codeunit 57 “Document Totals”, Base Application: modified
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”
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).