---
id: change/bcapps/11567
type: change
title: "#11567 [29.x]Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation"
summary: Report 400 (Remittance Advice) now includes applied vendor refund entries that share the payment's vendor number and document number, ensuring the printed line items match the calculated total.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit export remit. advice peppol30
  - codeunit remit. advice buffer mgt.
  - report remittance advice - entries
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:27.895Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4c48ff400d1ee8ab70eb442162f350375d6df0ea
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11567
    title: "microsoft/BCApps#11567: [29.x]Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation"
    date: "2026-09-21"
    commit: 4c48ff400d1ee8ab70eb442162f350375d6df0ea
    t: null
    quote: The report only surfaced entries from the payment's own application chain, missing refunds applied through a separate chain.
links:
  learn: []
  objects:
    - object/codeunit/37208
    - object/codeunit/37207
    - object/report/400
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11567
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11567
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-21T08:04:50Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 348
  deletions: 17
  al: 3
apps:
  - Base Application
  - PEPPOL
objects_touched:
  - key: codeunit/37208
    page: codeunit/37208
    type: codeunit
    id: 37208
    name: Export Remit. Advice PEPPOL30
    app: PEPPOL
    status: modified
  - key: codeunit/37207
    page: codeunit/37207
    type: codeunit
    id: 37207
    name: Remit. Advice Buffer Mgt.
    app: PEPPOL
    status: modified
  - key: report/400
    page: report/400
    type: report
    id: 400
    name: Remittance Advice - Entries
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650389
systems:
  - development
  - purchasing
quote: The report only surfaced entries from the payment's own application chain, missing refunds applied through a separate chain.
joined_against:
  major: "29"
  commit: 1d24dd5ee2a734510f0556ccc69342d0e616db2f
---

# #11567 [29.x]Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation

> Report 400 (Remittance Advice) now includes applied vendor refund entries that share the payment's vendor number and document number, ensuring the printed line items match the calculated total.

[Pull request](https://github.com/microsoft/BCApps/pull/11567) · merged into `releases/29.x` (BC29) on 2026-09-21 by neeleshsinghal · 5 files (+348 -17), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Refund entries are now identified and displayed as lines when they share the payment's vendor and document number
- Payment discount logic is skipped for refund entries to prevent incorrect calculations
- Report total is adjusted by subtracting line amounts to reconcile with displayed line items
- Fixes discrepancy where listed lines did not match the printed total
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 37208 "Export Remit. Advice PEPPOL30"](../../objects/codeunit/37208.md), PEPPOL: modified
- [Codeunit 37207 "Remit. Advice Buffer Mgt."](../../objects/codeunit/37207.md), PEPPOL: modified
- [Report 400 "Remittance Advice - Entries"](../../objects/report/400.md), Base Application: modified

## Context

- Work items: AB#650389
- Labels: AL: Apps (W1), Team: SCM
- Systems: development, purchasing
- From the description: "The report only surfaced entries from the payment's own application chain, missing refunds applied through a separate chain."

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