---
id: change/bcapps/11336
type: change
title: "#11336 [master] Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation"
summary: Report 400 now includes applied vendor refund entries that share a payment's document number, ensuring the report lines match the total amount instead of showing a discrepancy.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - 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: 0c994435e3ee038dbaf66822f8a2791b1aa3f43a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11336
    title: "microsoft/BCApps#11336: [master] Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation"
    date: "2026-09-21"
    commit: 0c994435e3ee038dbaf66822f8a2791b1aa3f43a
    t: null
    quote: A vendor refund sharing a payment's document number isn't shown as a line on Report 400
links:
  learn: []
  objects:
    - object/codeunit/37208
    - object/codeunit/37207
    - object/report/400
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11336
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11336
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-21T09:47:26Z"
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:
  - 648309
systems:
  - development
  - purchasing
quote: A vendor refund sharing a payment's document number isn't shown as a line on Report 400
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11336 [master] Report 400 (Remittance Advice) Does Not Include Applied Vendor Refund Entries Resulting in Incorrect Total Calculation

> Report 400 now includes applied vendor refund entries that share a payment's document number, ensuring the report lines match the total amount instead of showing a discrepancy.

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

## What changed

- Vendor refunds sharing the payment's Vendor No. and Document No. are now marked and shown as lines on Report 400
- Payment discount logic is skipped for refund entries
- The total is adjusted by the line amount so listed lines reconcile with the printed total
- Both the Base Application report and the PEPPOL remittance advice buffer and export codeunits were updated, with new tests
- 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#648309
- Labels: AL: Apps (W1), Team: SCM
- Systems: development, purchasing
- From the description: "A vendor refund sharing a payment's document number isn't shown as a line on Report 400"

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