code change · featureInventoryofficial - Microsoftreviewed - checked by Opus

#9466 [Extensibility Request] issue 30351: extend OnCheckExpirationDateOnBeforeAssignExpirationDate event

The OnCheckExpirationDateOnBeforeAssignExpirationDate event gains three new parameters (GlobalItemTrackingCode, ItemJnlLine2, SignFactor) to allow subscribers to access the data needed for expiration date assignment logic.

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

What changed

  • Event now exposes the item tracking code, journal line, and sign factor
  • Enables subscribers to replicate expiration-date assignment logic using the IsHandled pattern
  • Change applied consistently across W1 and all country-specific layers

AL objects touched

  • Codeunit 22 “Item Jnl.-Post Line”, Base Application: modified
  • src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#642240
  • Labels: Team: SCM, event-request
  • Systems: inventory

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