#13225 Fix Bug 656636 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 correctly populates CompAuxNum and CompAuxLib columns for payment discount lines on unapplied entries by using a fallback lookup based on G/L entry source type and source number.
- 2files
- 1AL files
- 1objects
Pull request · merged into releases/29.x (BC29) on 2026-11-09 by v-praghav · 2 files (+153 -23), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixed missing auxiliary account information (CompAuxNum and CompAuxLib) in FEC exports for unapplied payment entries
- Added fallback logic using G/L entry source type and source number when transaction-based lookup fails
- Unapplication transactions now properly match to customer and vendor information
- Added automated tests to validate correct handling of unapplied customer and vendor entries
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 10826 “Generate File FEC”, FECAuditFile (FR layer): modified
Context
- Work items: AB#656636
- 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.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Export General Ledger Entries Tax Audits [FR] — possibly related: Documents French audit file export format including payment discount line details for compliance. (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).