Repository navigation
[Extensibility Request] issue 12534: Event Request Codeunit 99000893 "Mfg. Create Put-away" - OnCreateBreakPackageLinesOnAfterCalcQty - #12883
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Good Sense Reviewer - Round 1Recommendation: Request ChangesWhat this PR doesThis change adds an integration event immediately after The event parameters and placement fit the requested per-buffer adjustment. However, the procedure's only caller is behind an always-false comparison, so the new event cannot run. Problem-solution fitFit: Partial The extension point is narrow and leaves standard behavior unchanged when no subscriber is present. Its current call path is unreachable, so it does not yet enable the reported scenario. SuggestionsS1 (🔴 High): New event is never raised Risk assessment and necessityRisk: The event surface is additive and does not change standard behavior without a subscriber. As written, partner code can subscribe successfully but the publisher is never reached, so the requested quantity correction still cannot run. Necessity: Split buffer records for an untracked item need a per-buffer quantity hook because the standard calculation uses the full remaining put-away quantity. The proposed event is the right shape, but its call path must be reachable before it provides that capability.
|
Compare the production output UOM quantity against the put-away UOM quantity instead of comparing the production field with itself. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ff76d051-99f6-4e2d-ac2e-aa6314183013
2f8a936
Summary
Splitting production output put-away buffers into multiple lines cannot currently adjust the break-package quantity for untracked items, so every buffer line receives the full remaining quantity. This adds a per-buffer integration event immediately after the quantity is calculated, allowing subscribers to recalculate it while retaining the standard behavior by default.
Changes Made
CreateBreakPackageLines- publish the temporary tracking buffer, production order line, worksheet context, and calculated quantity so extensions can override the quantity for each split line.Fixes #12534
Important
AI-generated: content may be inaccurate or incomplete. Please review and verify before relying on or merging.