Skip to content

[Event Request] codeunit 5895 "Inventory Adjustment" OnAfterInitRndgResidualItemJnlLine #29534

@AdeleStankeviciute

Description

@AdeleStankeviciute

Why do you need this change?

In 4PS Construct we need to assign additional field values after initializing Item Journal Line.

Describe the request

On behalf of 4PS, I would like to request adding new event OnAfterInitRndgResidualItemJnlLine to codeunit "Inventory Adjustment"

    local procedure InitRndgResidualItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; OrigValueEntry: Record "Value Entry")
    begin
        ItemJnlLine.Init();
        ItemJnlLine."Value Entry Type" := ItemJnlLine."Value Entry Type"::Rounding;
        ItemJnlLine."Quantity (Base)" := 1;
        ItemJnlLine."Invoiced Qty. (Base)" := 1;
        ItemJnlLine."Source No." := OrigValueEntry."Source No.";

        OnAfterInitRndgResidualItemJnlLine(ItemJnlLine, OrigValueEntry);
    end;
    [IntegrationEvent(false, false)]
    local procedure OnAfterInitRndgResidualItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; OrigValueEntry: Record "Value Entry")
    begin
    end;

Internal work item: AB#616766

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions