code change · featurePurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

#10124 [Extensibility Request] issue 30400: add credit memo line filter event

A new integration event allows extensions to filter purchase credit memo lines before they are selected during prepayment document updates, enabling customization without replacing standard posting logic.

Pull request · merged into main (BC30) on 2026-08-12 by AleksandricMarko · 6 files (+36 -0), 6 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New event OnUpdatePurchaseDocumentOnBeforeFindSetCrMemoPurchLine fires before credit memo lines are retrieved
  • Subscribers can apply additional filters to refine the purchase line selection
  • Event provides access to purchase header and mutable purchase line parameters
  • Change propagated across all localization layers (APAC, ES, IT, NA, NL, W1)
  • Addresses extensibility gap in purchase prepayment posting process

AL objects touched

  • Codeunit 444 “Purchase-Post Prepayments”, Base Application: modified
  • src/Layers/ES/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/NL/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#646145
  • Labels: Team: SCM, event-request
  • Systems: purchasing
  • From the description: “Extensions need to apply additional filters before credit memo purchase lines are selected while updating prepayment documents.”

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