#11941 Bug 651577 CompAuxNum and CompAuxLib columns should be informed for Payment Discount lines on Unapplied Entries in the French Audit File.
The FEC audit file export now populates CompAuxNum and CompAuxLib columns for payment discount lines on unapplied entries by using G/L entry source type and number as a fallback when customer/vendor ledger entries are unavailable.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-10-01 by v-praghav · 2 files (+153 -23), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Unapplication creates G/L entries without corresponding customer/vendor ledger entries, causing missing auxiliary account information
- Added fallback logic using G/L entry source type and source number to identify the party for receivables/payables accounts
- Improved FEC export completeness for unapplied payment scenarios
- Added automated tests for both customer and vendor unapplication cases
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 10826 “Generate File FEC”, FECAuditFile (FR layer): modified
Context
- Work items: AB#651577
- Labels: Team: Finance
- Systems: finance
- From the description: “CompAuxNum and CompAuxLib were blank on customer/vendor receivables or payables lines created when a payment was unapplied.”
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).