code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

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

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

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

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

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