Bug 598820: Item Availability by Event from Prod. Order ignores demand after Due Date#9075
Bug 598820: Item Availability by Event from Prod. Order ignores demand after Due Date#9075alexei-dobriansky wants to merge 1 commit into
Conversation
…d after Due Date Opening Item Availability by Event from a Prod. Order line/component set Item."Date Filter" to 0D..Due Date via FilterItem, so the event calc dropped all demand/supply dated after the Due Date. Clear the Date Filter in both Event branches so the view matches the Item Card / by-Period paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Agentic PR Review - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThis clears the The bug scenario is valid: the linked Bug has clear repro steps and an SuggestionsS1 - Cover the component event path Risk assessment and necessityRisk: Low to medium. The change is narrow and does not change tables or public signatures, but it changes the date scope for Event availability from production order lines and components. IntegrationEvent subscribers that set Necessity: High. This is a customer-case Bug with detailed repro steps, and the current Event view can hide demand after the production order Due Date. Without this fix, users must change the Due Date or open availability from the Item Card to see the missing events.
|
Copilot PR ReviewIteration 1 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@822cae1b2771ac25f665f73369f69093bd4fd630 Orchestrator pre-filter (13 file(s) excluded)
Findings produced by the Copilot CLI agent against BCQuality at |
Fixes AB#598820
Fixes bug 598820: "Item Availability by Event" from a Production Order only shows events up to the Due Date.
Problem
Opening Item Availability by Event from a Prod. Order line/component calls
ItemAvailabilityFormsMgt.FilterItem(...)which setsItem.SetRange("Date Filter", 0D, DueDate). The event calculation honors that upper bound (ToDate := Item.GetRangeMax("Date Filter")), so any demand/supply dated after the Due Date is dropped. The Item Card and by-Period paths do not set that bound.Fix
Clear
Item."Date Filter"in bothAvailabilityType::"Event"branches (ShowItemAvailFromProdOrderLineandShowItemAvailFromProdOrderComp) before callingShowItemAvailabilityByEvent, so the prod-order Event view matches the Item Card / by-Period views.Test
Adds
ItemAvailByEventFromProdOrderLineShowsDemandAfterDueDateto CU 137009 SCM Availability by Event: an item with a sales order dated one month after a Firm Planned prod order's Due Date; opening availability-by-Event from the prod-order line asserts the later sales demand is present (absent before the fix).