#9648 [master]-[BE] [PEPPOL] There is a problem between the totals on the invoice printout and the XML PEPPOL with Payment discount
Fixed discrepancy between invoice printout and PEPPOL XML totals in Belgium when payment discounts are applied by correcting how taxable amounts are calculated.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-07-28 by MSNehaNawal (community contribution) · 3 files (+334 -2), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added codeunit PEPPOL30 BE Tax Info for Belgian tax amounts with payment discount
- Updated the PEPPOL 3.0 Format BE enum extension alongside the new codeunit
- Taxable amount is based on the total minus the payment discount percentage
- Added a test codeunit covering payment discount scenarios
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 37315 “PEPPOL30 BE Tax Info”, PeppolBE (BE layer): added
- Enum extension 37310 “PEPPOL 3.0 Format BE”, PeppolBE (BE layer): modified
Context
- Work items: AB#643204
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: integration
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).