[Event Request] codeunit 367 "CheckManagement": add OnFinancialVoidCh…#9421
[Event Request] codeunit 367 "CheckManagement": add OnFinancialVoidCh…#9421Explorer986 wants to merge 3 commits into
Conversation
…eckOnBeforePostBalanceAccount IsHandled event; extract balance-account posting into FinancialVoidPostBalanceAccount (AB#640242, ALAppExtensions #30260)
Copilot PR ReviewIteration 3 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@809af9708e265f110ced6752fd8f2e40f1efc820 Findings by domainFindings split into Knowledge-backed (cite a BCQuality article) and Agent (the agent's own judgement, no matching BCQuality rule).
Totals: 1 knowledge-backed · 0 agent findings. Orchestrator pre-filter (2 file(s) excluded)
Findings produced by the Copilot CLI agent against BCQuality at |
…eAccount so handled posting flows back for the rounding calc (CI financial-correctness fix)
Agentic PR Review - Round 1Recommendation: Request ChangesWhat this PR doesThis PR adds The event is in the right part of the flow: after the void bank line is posted and before the balance-account entries are posted. The standard path keeps updating SuggestionsS1 - Pass posting context to handled subscribers Risk assessment and necessityRisk: This is core financial void posting in W1, NA, APAC, and RU. The unsubscribed path looks behavior-preserving, including Necessity: The event request is valid because the existing early event forces extensions to replace too much of
|
What & why
Adds
OnFinancialVoidCheckOnBeforePostBalanceAccount(anIsHandledevent) to codeunit 367 "CheckManagement" so partners can replace the balance-account posting inFinancialVoidCheck— the exact extension point the requester needed but could not get from the too-early existing events. The largecase CheckLedgEntry."Bal. Account Type"block was extracted verbatim into a newFinancialVoidPostBalanceAccountlocal procedure so the guard reads cleanly.Linked work
Fixes AB#640242
How I validated this
What I tested and the outcome
FinancialVoidPostBalanceAccount(withConfirmFinancialVoid.GetVoidType()/GetVoidDate()passed in asVoidType/VoidDateparams); default path (IsHandled := false) calls it, preserving behavior. AL language server reports no errors.Risk & compatibility
Low-medium. Behavior is preserved when unsubscribed, but this is core financial-void posting, so it deserves the regression check above. The new
IsHandledevent lets a subscriber skip the standard bal.-account posting - document if the event is treated as public. No schema/data impact.