[Extensibility Request] issue 29640: use document type enum in blocked customer event - #10520
[Extensibility Request] issue 29640: use document type enum in blocked customer event#10520Marko Aleksandric (AleksandricMarko) wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
it is not allowed to replace type of parameter in OnBeforeCheckBlockedCust |
Co-authored-by: AleksandricMarko <133204513+AleksandricMarko@users.noreply.github.com>
Implemented in commit
|
Agentic PR Review - Round 1Recommendation: AcceptWhat this PR doesThis PR keeps the existing OnBeforeCheckBlockedCust event as an obsolete compatibility event, then adds OnBeforeCheckBlockedCust2 with DocType as Enum "Gen. Journal Document Type". The change is applied to W1 and all current layer counterparts. The old event is still raised in non-CLEAN29 builds, and the new event is raised only when the old event did not already handle the blocked-customer check, so existing subscribers keep working while new subscribers can use the enum value. SuggestionsNone. Risk assessment and necessityRisk: This touches a public integration event on table 18 across all BaseApp layers, so the main risk is partner compatibility. The diff uses the safe obsoletion pattern instead of changing the old event signature in place, and the CI checks shown on the PR are green. I did not find a breaking event change in the current diff. Necessity: The linked GitHub issue and AB work item describe a valid extensibility need: subscribers need the extensible document type value instead of an option integer. The scope is narrow and matches the request.
|
Summary
Extensions need the blocked-customer check to preserve extensible general journal document type values instead of reducing them to an option integer. This PR changes the event contract to use the
Gen. Journal Document Typeenum and publishes the enum value directly.Source issue repository: microsoft/AlAppExtensions; issue number: 29640
Changes Made
Customer.OnBeforeCheckBlockedCust- changedDocTypefrom an option to the extensibleGen. Journal Document Typeenum and removed the integer conversion across W1 and all existing layer counterparts.Fixes AB#620150