ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 5812 "Calculate Standard Cost", SetProdBOMFilters
In codeunit 5812 "Calculate Standard Cost", function SetProdBOMFilter, please add publisher OnAfterSetProdBOMFilters as follows:
with ProdBOMLine do begin
SetRange("Production BOM No.", ProdBOMNo);
SetRange("Version Code", PBOMVersionCode);
SetFilter("Starting Date", '%1|..%2', 0D, CalculationDate);
SetFilter("Ending Date", '%1|%2..', 0D, CalculationDate);
SetFilter("No.", '<>%1', '')
end;
// >> ---- new
OnAfterSetProdBOMFilters(ProdBOMLine, PBOMVersionCode, ProdBOMNo);
// << ---- new
end;
[IntegrationEvent(false, false)]
local procedure OnAfterSetProdBOMFilters(var ProdBOMLine: Record "Production BOM Line"; var PBOMVersionCode: Code[20]; var ProdBOMNo: Code[20])
begin
end;
Sorry, I missed to set the ProdBOMNo parameter to var. I've updated the request.
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. We will update this issue with information about availability.