Skip to content

Bug 598820: Item Availability by Event from Prod. Order ignores demand after Due Date#9075

Draft
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/598820-EASY-ItemAvailabilityByEvent
Draft

Bug 598820: Item Availability by Event from Prod. Order ignores demand after Due Date#9075
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/598820-EASY-ItemAvailabilityByEvent

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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 sets Item.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 both AvailabilityType::"Event" branches (ShowItemAvailFromProdOrderLine and ShowItemAvailFromProdOrderComp) before calling ShowItemAvailabilityByEvent, so the prod-order Event view matches the Item Card / by-Period views.

Test

Adds ItemAvailByEventFromProdOrderLineShowsDemandAfterDueDate to 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).

…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>
@alexei-dobriansky alexei-dobriansky added the SCM GitHub request for SCM area label Jul 3, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 3, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant