code change · featureIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#12855 [E-Documents] Add support for credit memos, recognised from the PDF and applied to the original invoice

E-Documents now recognize vendor credit notes in PDFs and create purchase credit memos instead of invoices. A credit memo is applied to the invoice printed on the document only when exactly one open posted invoice of the pay-to vendor matches in an applicable currency; otherwise it stays unapplied with a warning.

Pull request · merged into main (BC30) on 2026-10-21 by Explorer986 · 20 files (+1797 -31), 12 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • Extraction returns the EN 16931 document type code and billing reference; code maps 381 to a credit memo and anything else to an invoice
  • Credit memos are applied only to the stated invoice when exactly one open posted invoice of the pay-to vendor matches in an applicable currency
  • Otherwise the credit memo is left unapplied with a warning, and finalizing re-checks the match
  • Draft gets an editable Applies-to Vendor Inv. No. field and a read-only outcome field
  • Amount signs are normalized from the lines first, then the header totals
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #13142 into releases/29.x on 2026-10-23

Context

  • Work items: AB#650500
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: integration

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