[29.X]- The Available to Take logic is incorrect or inaccurate in the Pick Worksheet as it includes Ship and Receive bin inventory - #11238
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Good Sense Reviewer - Round 1Recommendation: AcceptWhat this PR doesThis change makes Pick Worksheet availability for non-directed, bin-mandatory warehouse locations ignore inventory that cannot be picked from configured receipt and shipment bins. The new bin filter matches the direct pick creation logic, the picked-not-shipped adjustment avoids double removing registered picks in the shipment bin, and the inventory cap keeps received-but-not-put-away stock unavailable even when the configured receipt bin later changes. Problem-solution fitFit: Strong The reported scenario is that the worksheet shows more available quantity than the actual pick can create when inventory sits in receipt or shipment bins. The diff addresses that full mismatch while preserving configurations where receipt or shipment bins should still count because put-away or pick is not required. SuggestionsNone. Risk assessment and necessityRisk: The touched surface is warehouse Pick Worksheet quantity calculation for non-directed locations with bins, so a mistake could make users overstate or understate pickable inventory. The change is narrow, changes no public API or event contract, aligns with the BaseApp direct pick bin-selection filter, and is covered by W1, IT, and RU tests for configured receipt and shipment bins, receipt-bin changes, registered picks, and double-removal cases. Necessity: The change is needed because the worksheet could report stock as available even though the standard pick flow cannot take it. The scope is appropriate: it changes only the availability calculation and matching regression tests.
|
Fixes AB#647203