Skip to content

[Event Request] codeunit 99000893 "Mfg. Create Put-away" - OnBeforeGetPutAwayUOMForProdOrderLine #30030

@makuhn

Description

@makuhn

Why do you need this change?

Event ist required to integrate our enhanced warehouse functionality for load carrier management (create put-away per load carrier). This functionality implements a different logic for determining the Put-Away Unit of Measure to use. Alternative implementation is not possible because this function is the central point for setting the Put-Away Unit of Measure. IsHandled pattern is required to be able to overrule the standard functionality. Same event already exists in Codeunit 7313 Create Put-Away. Event does not expose any sensitive data.

Describe the request

Add new code and Integration Event in codeunit 99000893 "Mfg. Create Put-away"

     local procedure GetPutAwayUOMForProdOrderLine(ProdOrderLine: Record "Prod. Order Line")
+    var
+        IsHandled: Boolean;
     begin
+        IsHandled := false;
+        OnBeforeGetPutAwayUOMForProdOrderLine(PutAwayItemUnitOfMeasure, ProdOrderLine, BasePutAwayItemUnitOfMeasure, IsHandled);
+        if IsHandled then
+            exit;
+
         if not CurrLocation."Directed Put-away and Pick" then begin
             PutAwayItemUnitOfMeasure.Code := ProdOrderLine."Unit of Measure Code";

...

+    [IntegrationEvent(false, false)]
+    local procedure OnBeforeGetPutAwayUOMForProdOrderLine(var PutAwayItemUOM: Record "Item Unit of Measure"; ProdOrderLine: Record "Prod. Order Line"; var BasePutAwayItemUnitOfMeasure: var Record "Item Unit of Measure"; IsHandled: Boolean)
+    begin
+    end;

Internal work item: AB#635595

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions