[Main]-Bin content Block Movement does not prevent outbound posting for negative adjustments and sales orders#9333
Conversation
Copilot PR ReviewIteration 5 · Outcome: completed
Knowledge source: https://github.com/microsoft/BCQuality@186d8a131465475c79244d994acb872cd5c0d4bf Orchestrator pre-filter (2 file(s) excluded)
Findings produced by the AL review agent v1.7.3. Reply 👎 on any inline comment to flag false positives. |
Agentic PR Review - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThis PR blocks outbound postings from a Bin Content when For the linked repro, the fix addresses the root cause. The new check runs before SuggestionsS1 - Check the purchase return path S2 - Add an inbound control test Risk assessment and necessityRisk: The risk is in warehouse posting. Necessity: The bug is valid and important. Without this change, a bin content marked as blocked for outbound movement can still be depleted by negative adjustments and sales shipments. The scope is mostly right for the linked repro, and the tests cover the main reported cases.
|
qasimikram
left a comment
There was a problem hiding this comment.
S1: The new unconditional WMSMgt.CheckWhseJnlLine(...) call in PostItemJnlLineWhseLine breaks sales posting when the temporary warehouse journal line has no location. CheckWhseJnlLine immediately requires Location Code, and the current CI failures reproduce this broadly across localizations with Location Code must have a value in Warehouse Journal Line, with the stack pointing to the added call.
Please guard this validation so it only runs for the bin/location scenario it is intended to protect, and add a regression test covering sales posting without a location. The targeted blocked-bin tests cover the bug scenario but not this newly broken path.
Workitem Bug 639575: [All-E] Bin content Block Movement does not prevent outbound posting for negative adjustments and sales orders
Fixes AB#639575