---
id: change/bcapps/9648
type: change
title: "#9648 [master]-[BE] [PEPPOL] There is a problem between the totals on the invoice printout and the XML PEPPOL with Payment discount"
summary: Fixed discrepancy between invoice printout and PEPPOL XML totals in Belgium when payment discounts are applied by correcting how taxable amounts are calculated.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit peppol30 be tax info
  - enumextension peppol 3.0 format be
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:16.021Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6414b3047027c20025fa3c7efe2593c62cb86c05
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9648
    title: "microsoft/BCApps#9648: [master]-[BE] [PEPPOL] There is a problem between the totals on the invoice printout and the XML PEPPOL with Payment discount"
    date: "2026-07-28"
    commit: 6414b3047027c20025fa3c7efe2593c62cb86c05
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/37315-be
    - object/enumextension/37310-be
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9648
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9648
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-28T02:01:09Z"
author: MSNehaNawal
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 334
  deletions: 2
  al: 2
apps:
  - PeppolBE
objects_touched:
  - key: codeunit/37315
    page: codeunit/37315-be
    type: codeunit
    id: 37315
    name: PEPPOL30 BE Tax Info
    app: PeppolBE
    status: added
  - key: enumextension/37310
    page: enumextension/37310-be
    type: enumextension
    id: 37310
    name: PEPPOL 3.0 Format BE
    app: PeppolBE
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 643204
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

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

[Pull request](https://github.com/microsoft/BCApps/pull/9648) · 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"](../../objects/codeunit/37315-be.md), PeppolBE (BE layer): added
- [Enum extension 37310 "PEPPOL 3.0 Format BE"](../../objects/enumextension/37310-be.md), 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).
