ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 5870 "Calculate BOM Tree" - OnGenerateItemSubTreeAfterGetParentItem

Open JeremyOrgan-DC opened this issue 4 years ago • 1 comments

Please could you add OnGenerateItemSubTreeAfterGetParentItem event to allow the Parent Item Prod. BOM No. and Routing to be changed before the calculations begin.

local procedure GenerateItemSubTree(ItemNo: Code[20]; var BOMBuffer: Record "BOM Buffer"): Boolean
begin
    with BOMBuffer do begin
        ParentItem.Get(ItemNo);
        OnGenerateItemSubTreeAfterGetParentItem(ParentItem);

        if TempItem.Get(ItemNo) then begin
            "Is Leaf" := false;
            Modify(true);
            exit(false);
        end;
        .......

[IntegrationEvent(false, false)]
local procedure OnGenerateItemSubTreeAfterGetParentItem(var ParentItem: Record Item);
begin
end;

JeremyOrgan-DC avatar Feb 02 '22 14:02 JeremyOrgan-DC

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Feb 09 '22 07:02 JesperSchulz