ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5812 "Calculate Standard Cost", SetProdBOMFilters

Open IngoStender opened this issue 6 years ago • 2 comments

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;


IngoStender avatar Mar 04 '20 13:03 IngoStender

Sorry, I missed to set the ProdBOMNo parameter to var. I've updated the request.

IngoStender avatar Mar 10 '20 12:03 IngoStender

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.

bc-ghost avatar Mar 19 '20 10:03 bc-ghost