Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] codeunit 7313 "Create Put-away" - OnBeforeFindBinFromBinContentForProdOrderLine #28439

Open
FSchneiderYav opened this issue Mar 31, 2025 · 0 comments
Labels
event-request Request for adding an event SCM GitHub request for SCM area Test1

Comments

@FSchneiderYav
Copy link

FSchneiderYav commented Mar 31, 2025

Describe the request

We need a new event for the function FindBinFromBinContentForProdOrderLine in codeunit 7313 "Create Put-away"

Additional context

    local procedure FindBinFromBinContentForProdOrderLine(ProdOrderLine: Record "Prod. Order Line"; var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary; var BinContentQtyBase: Decimal)
    begin
+      OnBeforeFindBinFromBinContentForProdOrderLine(ProdOrderLine, TempProdOrdLineTrackingBuff, BinContentQtyBase);
        if not FindBinContent(ProdOrderLine."Location Code", ProdOrderLine."Item No.", ProdOrderLine."Variant Code", WarehouseClassCode) then
            exit;

        repeat
            if BinContentAndProdOrderLineHaveDiffBin(CurrBinContent."Bin Code", ProdOrderLine."Bin Code") then
                CalcQtyFromBinContent(ProdOrderLine, TempProdOrdLineTrackingBuff, BinContentQtyBase);
        until not NextBinContent();
    end;

+ [IntegrationEvent(false, false)]
+ local procedure OnBeforeFindBinFromBinContentForProdOrderLine(ProdOrderLine: Record "Prod. Order Line"; var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary; var BinContentQtyBase: Decimal)
+ begin
+ end;

Internal work item: AB#572969

@JesperSchulz JesperSchulz added event-request Request for adding an event SCM GitHub request for SCM area labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area Test1
Projects
None yet
Development

No branches or pull requests

3 participants