---
id: change/bcapps/11596
type: change
title: "#11596 [Main]Customer Direct Debit Payment Slip – SEPA File Generation Fails and Credit Memo Is Processed Incorrectly When Invoice and Credit Memo Exist for the Same Customer in the French version."
summary: Fixes SEPA Direct Debit export and customer payment slip posting in the French version when invoices and credit memos exist for the same customer. Credit memos are now correctly netted against invoices instead of being posted separately as refunds.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit payment management fr
  - codeunit paymentmgt subscribers fr
  - report suggest cust. payments
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-04T00:58:53.366Z"
  flags: []
generated:
  at: "2026-11-20T00:15:45.369Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5aa872a288a38bcf1d1c6e5bfefaeeea470629c8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11596
    title: "microsoft/BCApps#11596: [Main]Customer Direct Debit Payment Slip – SEPA File Generation Fails and Credit Memo Is Processed Incorrectly When Invoice and Credit Memo Exist for the Same Customer in the French version."
    date: "2026-11-03"
    commit: 5aa872a288a38bcf1d1c6e5bfefaeeea470629c8
    t: null
    quote: Fixed SEPA customer payment slip processing for credit memo scenarios by correcting posting document type and amount handling.
links:
  learn: []
  objects:
    - object/codeunit/10837-fr
    - object/codeunit/10838-fr
    - object/report/10849-fr
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/France/how-to-create-payment-slips
      title: Create Payment Slips [FR]
      label: possibly related
      why: Covers creating payment slips and SEPA file generation for French localization, directly relevant to the SEPA Direct Debit Payment Slip bug…
      by: model
number: 11596
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11596
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-03T15:04:23Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 262
  deletions: 22
  al: 3
apps:
  - PaymentManagementFR
objects_touched:
  - key: codeunit/10837
    page: codeunit/10837-fr
    type: codeunit
    id: 10837
    name: Payment Management FR
    app: PaymentManagementFR
    status: modified
  - key: codeunit/10838
    page: codeunit/10838-fr
    type: codeunit
    id: 10838
    name: PaymentMgt Subscribers FR
    app: PaymentManagementFR
    status: modified
  - key: report/10849
    page: report/10849-fr
    type: report
    id: 10849
    name: Suggest Cust. Payments
    app: PaymentManagementFR
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13609
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13609
fixes_issues: []
work_items:
  - 644993
systems:
  - finance
quote: Fixed SEPA customer payment slip processing for credit memo scenarios by correcting posting document type and amount handling.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #11596 [Main]Customer Direct Debit Payment Slip – SEPA File Generation Fails and Credit Memo Is Processed Incorrectly When Invoice and Credit Memo Exist for the Same Customer in the French version.

> Fixes SEPA Direct Debit export and customer payment slip posting in the French version when invoices and credit memos exist for the same customer. Credit memos are now correctly netted against invoices instead of being posted separately as refunds.

[Pull request](https://github.com/microsoft/BCApps/pull/11596) · merged into `main` (BC30) on 2026-11-03 by Shikhverma · 5 files (+262 -22), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrected settlement amount calculation to properly subtract credit memos from invoices based on document type
- Fixed SEPA export validation to handle invoice and credit memo combinations under the same collection
- Ensured correct direct debit mandate and bank account retrieval for combined invoice and credit memo scenarios
- Added test cases for SEPA Direct Debit functionality and payment management with credit memos
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 10837 "Payment Management FR"](../../objects/codeunit/10837-fr.md), PaymentManagementFR (FR layer): modified
- [Codeunit 10838 "PaymentMgt Subscribers FR"](../../objects/codeunit/10838-fr.md), PaymentManagementFR (FR layer): modified
- [Report 10849 "Suggest Cust. Payments"](../../objects/report/10849-fr.md), PaymentManagementFR (FR layer): modified

## Also merged into

- [#13609](https://github.com/microsoft/BCApps/pull/13609) into `releases/29.x` on 2026-11-16

## Context

- Work items: AB#644993
- Labels: Team: Finance
- Systems: finance
- From the description: "Fixed SEPA customer payment slip processing for credit memo scenarios by correcting posting document type and amount handling."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Create Payment Slips \[FR\]](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/France/how-to-create-payment-slips) — possibly related: Covers creating payment slips and SEPA file generation for French localization, directly relevant to the SEPA Direct Debit Payment Slip bug… (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).
