You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add an event OnBeforeCalcNewInvtEventBuf in the procedure CalcNewInvtEventBuf in Codeunit 5530 "Calc. Item Availability"
procedure CalcNewInvtEventBuf(var Item: Record Item; ForecastName: Code[10]; IncludeBlanketOrders: Boolean; ExcludeForecastBefore: Date;
IncludePlan: Boolean)
begin
if Item.Type <> Item.Type::Inventory then
exit;
TempInvtEventBuf.Reset();
TempInvtEventBuf.DeleteAll();
OnBeforeCalcNewInvtEventBuf(TempInvtEventBuf); // <--- New Event
GetDocumentEntries(TempInvtEventBuf, Item);
if (ForecastName <> '') or IncludeBlanketOrders or IncludePlan then
GetAnticipatedDemand(TempInvtEventBuf, Item, ForecastName, ExcludeForecastBefore, IncludeBlanketOrders);
if IncludePlan then
GetPlanningEntries(TempInvtEventBuf, Item);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcNewInvtEventBuf(var TempInvtEventBuf: Record "Inventory Event Buffer")
begin
end;
Additional context
We need to apply additional custom filters and exclusions (e.g., LotStatusExclusionFilter) in the temporary inventory event buffer before GetDocumentEntries procedure is called.
The text was updated successfully, but these errors were encountered:
Describe the request
Please add an event OnBeforeCalcNewInvtEventBuf in the procedure CalcNewInvtEventBuf in Codeunit 5530 "Calc. Item Availability"
Additional context
We need to apply additional custom filters and exclusions (e.g., LotStatusExclusionFilter) in the temporary
inventory event buffer
beforeGetDocumentEntries
procedure is called.The text was updated successfully, but these errors were encountered: