ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

codeunit 5870 "Calculate BOM Tree" procedure GenerateProdCompSubTree - make it possbile to load data from SKU

Open extranrollo opened this issue 4 years ago • 1 comments

codeunit 5870 "Calculate BOM Tree" procedure GenerateProdCompSubTree

In this procedure you search the ProdBOMLines depending on the Item.

grafik

The problem is, that we define Prod Boms and Routings on the SKU and want to display the Page "Item Availability by BOM Level" depending on the ProdBom and Routing from the SKU.

When you init the BOMLine, you already have this event, where i can change the filters/Values from the BOMBuffer, but this is reset due to the logic above.

grafik

So please change the part above from with ProdBOMLine do begin SetRange("Production BOM No.", ParentItem."Production BOM No."); SetRange("Version Code", VersionMgt.GetBOMVersion(ParentItem."Production BOM No.", WorkDate, true));

to with ProdBOMLine do begin SetRange("Production BOM No.", BOMBuffer."Production BOM No."); SetRange("Version Code", VersionMgt.GetBOMVersion(BOMBuffer."Production BOM No.", WorkDate, true));

extranrollo avatar Sep 27 '22 14:09 extranrollo

Internally closed as "Won't Fix" by @alexei-dobriansky with reason "This is not a safe change. In the code below, ParentItem and BOMBuffer have different Production BOM No. and Routing No. values, therefore we can't make suggested changes in GenerateProdCompSubTree.". Syncing state to GitHub.

JesperSchulz avatar Jun 17 '24 07:06 JesperSchulz