[Extensibility Request] issue 30334: fix OnAfterCarryOutToReqWksh record order#9449
Draft
AleksandricMarko wants to merge 1 commit into
Draft
[Extensibility Request] issue 30334: fix OnAfterCarryOutToReqWksh record order#9449AleksandricMarko wants to merge 1 commit into
AleksandricMarko wants to merge 1 commit into
Conversation
… subscribers can modify the target requisition line Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A subscriber to the
OnAfterCarryOutToReqWkshintegration event in codeunit 99000813 "Carry Out Action" needs to update the newly created target requisition line based on the source line it was copied from. The event's first parameter is passed byvarprecisely so subscribers can modify that record, but in version 28.1 the call was changed to pass the source line as the first argument and the target line by value, removing any way to persist changes to the target line. This regression blocks the reporter's process. This PR restores the previous argument order so the modifiablevarparameter is once again the target requisition line.Source issue repository: microsoft/ALAppExtensions; issue number: 30334
Changes Made
Carry Out Action.CarryOutToReqWksh- restored theOnAfterCarryOutToReqWkshcall to pass the target requisition line as the first (var) argument and the source line second, so subscribers can again modify and persist the target line; applied in both the W1 and NA layers.Mfg. Carry Out Action.OnAfterCarryOutToReqWksh- updated the subscriber to read the source worksheet identifiers from the second parameter to match the restored argument order, keeping planning routing line and capacity need propagation correct.Fixes AB#641682